Skip to content

Commit 9cb9240

Browse files
committed
remove duplicates from teardownclass
1 parent 47cc484 commit 9cb9240

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_app/tests/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def tearDownClass(cls):
6868

6969
# Repurposed from ChannelsLiveServerTestCase._post_teardown
7070
cls._live_server_modified_settings.disable()
71-
for db_name in ["default", config.REACTPY_DATABASE]:
71+
# Using set to prevent duplicates
72+
for db_name in {"default", config.REACTPY_DATABASE}:
7273
call_command(
7374
"flush",
7475
verbosity=0,

0 commit comments

Comments
 (0)