Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for clear_sqlmodel (0.09 sec)

  1. tests/test_tutorial/test_sql_databases/test_tutorial001.py

        ],
    )
    def get_client(request: pytest.FixtureRequest):
        clear_sqlmodel()
        # TODO: remove when updating SQL tutorial to use new lifespan API
        with warnings.catch_warnings(record=True):
            warnings.simplefilter("always")
            mod = importlib.import_module(f"docs_src.sql_databases.{request.param}")
            clear_sqlmodel()
            importlib.reload(mod)
        mod.sqlite_url = "sqlite://"
    Registered: 2024-11-03 07:19
    - Last Modified: 2024-10-09 19:44
    - 14.8K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_sql_databases/test_tutorial002.py

        ],
    )
    def get_client(request: pytest.FixtureRequest):
        clear_sqlmodel()
        # TODO: remove when updating SQL tutorial to use new lifespan API
        with warnings.catch_warnings(record=True):
            warnings.simplefilter("always")
            mod = importlib.import_module(f"docs_src.sql_databases.{request.param}")
            clear_sqlmodel()
            importlib.reload(mod)
        mod.sqlite_url = "sqlite://"
    Registered: 2024-11-03 07:19
    - Last Modified: 2024-10-09 19:44
    - 19.9K bytes
    - Viewed (0)
Back to top