Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for main_mod (0.04 sec)

  1. tests/test_tutorial/test_settings/test_app03.py

        return mod_path
    
    
    @pytest.fixture(name="main_mod")
    def get_main_mod(mod_path: str) -> ModuleType:
        main_mod = importlib.import_module(f"{mod_path}.main")
        return 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"
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_settings/test_app02.py

    
    @pytest.fixture(name="main_mod")
    def get_main_mod(mod_path: str) -> ModuleType:
        main_mod = importlib.import_module(f"{mod_path}.main")
        return main_mod
    
    
    @pytest.fixture(name="test_main_mod")
    def get_test_main_mod(mod_path: str) -> ModuleType:
        test_main_mod = importlib.import_module(f"{mod_path}.test_main")
        return test_main_mod
    
    
    def test_settings(main_mod: ModuleType, monkeypatch: MonkeyPatch):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 1K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_settings/test_app01.py

        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):
        monkeypatch.delenv("ADMIN_EMAIL", raising=False)
        if mod_name in sys.modules:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 2.2K bytes
    - Viewed (0)
Back to top