We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c8f5e8 commit 269ce5dCopy full SHA for 269ce5d
bookshelf/main_test.py
@@ -40,15 +40,15 @@ def app(request):
40
41
@pytest.fixture
42
def firestore():
43
-
44
- import firestore
45
"""This fixture provides a modified version of the app's Firebase model
46
that tracks all created items and deletes them at the end of the test.
47
48
Any tests that directly or indirectly interact with the database should
49
use this to ensure that resources are properly cleaned up.
50
"""
51
+ import firestore
+
52
# Ensure no books exist before running the tests. This typically helps if
53
# tests somehow left the database in a bad state.
54
delete_all_books(firestore)
0 commit comments