Generate new config for each test. Fixes tests.

This commit is contained in:
grossmj committed 2021-04-12 19:37:59 +09:30
1 parent 30ebae207f
commit 1b5a5de4bc
9 files changed
+18 -21

No files matched your search

@@ -30,7 +30,6 @@ pytestmark = pytest.mark.asyncio
async def test_shutdown_local(app: FastAPI, client: AsyncClient, config: Config) -> None:
os.kill = MagicMock()
config.settings.Server.local = True
response = await client.post(app.url_path_for("shutdown"))
assert response.status_code == status.HTTP_204_NO_CONTENT
assert os.kill.called