Skip to content

Commit

Permalink
test: rename class and correct comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ofr1tz committed Nov 28, 2024
1 parent 2b88cf7 commit 24c7eec
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from tests.integration import set_up, tear_down


class TestCreateFootprintProject(unittest.TestCase):
class TestCreateStreetProject(unittest.TestCase):
def setUp(self):
self.project_id = [
set_up.create_test_project_draft("street", "street"),
Expand All @@ -33,7 +33,7 @@ def test_create_street_project(self):
result = pg_db.retr_query(query, [element])[0][0]
self.assertEqual(result, element)

# check if usernames made it to postgres
# check if tasks made it to postgres
query = """
SELECT count(*)
FROM tasks
Expand All @@ -51,10 +51,11 @@ def test_create_street_project(self):
result = ref.get(shallow=True)
self.assertIsNotNone(result)

# Footprint projects have tasks in Firebase
# Street projects have tasks in Firebase
ref = fb_db.reference(f"/v2/tasks/{element}")
result = ref.get(shallow=True)
self.assertIsNotNone(result)


if __name__ == "__main__":
unittest.main()

0 comments on commit 24c7eec

Please sign in to comment.