fastapi-cli icon indicating copy to clipboard operation
fastapi-cli copied to clipboard

🧪 Fixes and simplifications to tests

Open mattmess1221 opened this issue 1 year ago • 0 comments

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

mattmess1221 avatar Oct 09 '24 01:10 mattmess1221