Skip to content

Commit b4ca273

Browse files
committed
check if we enriched properties
1 parent 3dfe5e2 commit b4ca273

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

mapswipe_workers/tests/integration/test_create_footprint_project.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ def test_create_footprint_project(self):
3131
query = "SELECT project_id FROM projects WHERE project_id = %s"
3232
result = pg_db.retr_query(query, [element])[0][0]
3333
self.assertEqual(result, element)
34+
35+
# check if usernames made it to postgres
36+
if element != "footprint_link":
37+
query = """
38+
SELECT count(*)
39+
FROM tasks
40+
WHERE project_id = %s
41+
and project_type_specifics->username is not null
42+
"""
43+
result = pg_db.retr_query(query, [element])[0][0]
44+
self.assertGreater(result, 0)
45+
3446
fb_db = auth.firebaseDB()
3547
ref = fb_db.reference(f"/v2/projects/{element}")
3648
result = ref.get(shallow=True)

0 commit comments

Comments
 (0)