feat: delete project storage on database reset with safe FS cleanup
This commit is contained in:
@@ -271,7 +271,7 @@ def test_post_correct_confirmation_resets_and_redirects():
|
||||
assert resp.status_code == 303
|
||||
assert "/projects/" in resp.headers["location"]
|
||||
page = client.get(resp.headers["location"])
|
||||
assert "успешно удалены" in page.text
|
||||
assert "Данные удалены" in page.text
|
||||
with Session() as s:
|
||||
assert s.query(Project).count() == 0
|
||||
assert s.query(WorkItem).count() == 0
|
||||
|
||||
Reference in New Issue
Block a user