Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 20e41c1

Browse files
committed
test logs
1 parent 895e1e5 commit 20e41c1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

core/tests/test_management_commands.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,14 @@ def test_insert_data_to_db_from_csv_for_plans():
148148
# Check the output
149149
assert "Successfully inserted all data into plans from CSV" in out.getvalue()
150150

151+
print(Plan.objects.all())
152+
print(Tier.objects.all())
153+
print(Plan.objects.filter(name="Plan A").exists())
154+
print(Plan.objects.filter(name="Plan B").exists())
155+
151156
# Verify the data was inserted correctly
152-
assert Plan.objects.filter(
153-
name="Plan A",
154-
).exists()
155-
assert Plan.objects.filter(
156-
name="Plan B",
157-
).exists()
157+
assert Plan.objects.filter(name="Plan A").exists()
158+
assert Plan.objects.filter(name="Plan B").exists()
158159

159160
# Clean up the temporary file
160161
os.remove(csv_path)

0 commit comments

Comments
 (0)