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 3dfe5e2 commit b4ca273Copy full SHA for b4ca273
mapswipe_workers/tests/integration/test_create_footprint_project.py
@@ -31,6 +31,18 @@ def test_create_footprint_project(self):
31
query = "SELECT project_id FROM projects WHERE project_id = %s"
32
result = pg_db.retr_query(query, [element])[0][0]
33
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
46
fb_db = auth.firebaseDB()
47
ref = fb_db.reference(f"/v2/projects/{element}")
48
result = ref.get(shallow=True)
0 commit comments