Home / File/ conftest.py — flask Source File

conftest.py — flask Source File

Architecture documentation for conftest.py, a python file in the flask codebase. 2 imports, 0 dependents.

File python ApplicationCore AppLifeCycle 2 imports 2 functions

Entity Profile

Dependency Diagram

graph LR
  9f403c61_2a2b_c282_4410_8a03563bc2b6["conftest.py"]
  da94d511_b8b8_a450_f67f_fc28ea9b648a["pytest"]
  9f403c61_2a2b_c282_4410_8a03563bc2b6 --> da94d511_b8b8_a450_f67f_fc28ea9b648a
  f7beb154_8bbb_a52b_a314_98b5b3373c62["js_example"]
  9f403c61_2a2b_c282_4410_8a03563bc2b6 --> f7beb154_8bbb_a52b_a314_98b5b3373c62
  style 9f403c61_2a2b_c282_4410_8a03563bc2b6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import pytest

from js_example import app


@pytest.fixture(name="app")
def fixture_app():
    app.testing = True
    yield app
    app.testing = False


@pytest.fixture
def client(app):
    return app.test_client()

Subdomains

Dependencies

  • js_example
  • pytest

Frequently Asked Questions

What does conftest.py do?
conftest.py is a source file in the flask codebase, written in python. It belongs to the ApplicationCore domain, AppLifeCycle subdomain.
What functions are defined in conftest.py?
conftest.py defines 2 function(s): client, fixture_app.
What does conftest.py depend on?
conftest.py imports 2 module(s): js_example, pytest.
Where is conftest.py in the architecture?
conftest.py is located at examples/javascript/tests/conftest.py (domain: ApplicationCore, subdomain: AppLifeCycle, directory: examples/javascript/tests).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free