fastapi-cli
fastapi-cli copied to clipboard
🧪 Fixes and simplifications to tests
Most important change is the added conftest.reset_imports fixture, which restores the state of sys.modules after each test, similar to conftest.resset_syspath.
Other changes rewrites duplicated tests to use pytest.mark.parametrize and replaces tests.utils.changing_dir to use monkeypatch.chdir