Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for Unsetenv (0.03 sec)

  1. tests/test_tutorial/test_settings/test_app02.py

        test_main_mod = importlib.import_module(f"{mod_path}.test_main")
        return test_main_mod
    
    
    def test_settings(main_mod: ModuleType, monkeypatch: MonkeyPatch):
        monkeypatch.setenv("ADMIN_EMAIL", "******@****.***")
        settings = main_mod.get_settings()
        assert settings.app_name == "Awesome API"
        assert settings.items_per_user == 50
    
    
    def test_override_settings(test_main_mod: ModuleType):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 1K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_settings/test_app01.py

    
    @pytest.fixture(name="client")
    def get_test_client(mod_name: str, monkeypatch: MonkeyPatch) -> TestClient:
        if mod_name in sys.modules:
            del sys.modules[mod_name]
        monkeypatch.setenv("ADMIN_EMAIL", "******@****.***")
        main_mod = importlib.import_module(mod_name)
        return TestClient(main_mod.app)
    
    
    def test_settings_validation_error(mod_name: str, monkeypatch: MonkeyPatch):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  3. internal/init/init_darwin_amd64.go

    package init
    
    import (
    	"os"
    
    	"github.com/klauspost/cpuid/v2"
    )
    
    func init() {
    	// All MinIO operations must be under UTC.
    	os.Setenv("TZ", "UTC")
    
    	// Temporary workaround for
    	// https://github.com/golang/go/issues/49233
    	// Keep until upstream has been fixed.
    	cpuid.CPU.Disable(cpuid.AVX512F, cpuid.AVX512BW, cpuid.AVX512CD, cpuid.AVX512DQ,
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Nov 04 23:44:38 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  4. internal/kms/config_test.go

    package kms
    
    import (
    	"os"
    	"testing"
    )
    
    func TestIsPresent(t *testing.T) {
    	for i, test := range isPresentTests {
    		os.Clearenv()
    		for k, v := range test.Env {
    			t.Setenv(k, v)
    		}
    
    		ok, err := IsPresent()
    		if err != nil && !test.ShouldFail {
    			t.Fatalf("Test %d: %v", i, err)
    		}
    		if err == nil && test.ShouldFail {
    			t.Fatalf("Test %d: should have failed but succeeded", i)
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 2.7K bytes
    - Viewed (0)
Back to top