test_apps() — flask Function Reference
Architecture documentation for the test_apps() function in conftest.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 6ae1c426_9d2a_3318_85dc_7ae290f4d2cf["test_apps()"] 91da8911_f5f3_2fff_0b5f_8e0f6b24cbf6["conftest.py"] 6ae1c426_9d2a_3318_85dc_7ae290f4d2cf -->|defined in| 91da8911_f5f3_2fff_0b5f_8e0f6b24cbf6 style 6ae1c426_9d2a_3318_85dc_7ae290f4d2cf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/conftest.py lines 72–81
def test_apps(monkeypatch):
monkeypatch.syspath_prepend(os.path.join(os.path.dirname(__file__), "test_apps"))
original_modules = set(sys.modules.keys())
yield
# Remove any imports cached during the test. Otherwise "import app"
# will work in the next test even though it's no longer on the path.
for key in sys.modules.keys() - original_modules:
sys.modules.pop(key)
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_apps() do?
test_apps() is a function in the flask codebase, defined in tests/conftest.py.
Where is test_apps() defined?
test_apps() is defined in tests/conftest.py at line 72.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free