Skip to content

Commit

Permalink
cleanup after project generation and wait longer between delete and g…
Browse files Browse the repository at this point in the history
…enerate
  • Loading branch information
denniswittich committed Nov 13, 2024
1 parent 7f6f0b2 commit 0b09741
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions trainer/app_code/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ async def check_marks(request: SubRequest, glc: LoopCommunicator): # pylint: di
project = configuration['project_name']
# May not return 200 if project does not exist
await glc.delete(f"/zauberzeug/projects/{project}?keep_images=true")
await asyncio.sleep(1)
await asyncio.sleep(5)
assert (await glc.post("/zauberzeug/projects/generator", json=configuration)).status_code == 200
await asyncio.sleep(1)
await asyncio.sleep(5)
yield
await asyncio.sleep(5)
await glc.delete(f"/zauberzeug/projects/{project}?keep_images=true")
# assert (await lc.delete(f"/zauberzeug/projects/{project}?keep_images=true")).status_code == 200
else:
yield
Expand Down

0 comments on commit 0b09741

Please sign in to comment.