Skip to content

Commit

Permalink
update units
Browse files Browse the repository at this point in the history
  • Loading branch information
MothScientist committed Dec 16, 2024
1 parent efdab9e commit 2cb49ca
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/test_database_queries_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,9 +702,12 @@ def test_018_get_group_telegram_ids_2(self):
for i in range(1, TestDbQueries._number_of_users_group_4 + 1)))

def test_018_get_group_telegram_ids_3(self):
group_id: int = 5 # non-existent group
res: tuple = self.test_db.get_group_telegram_ids(group_id)
self.assertEqual(res, tuple())
"""
non-existent groups
"""
for group_id in range(5, 100):
res: tuple = self.test_db.get_group_telegram_ids(group_id)
self.assertEqual(res, tuple(), f'group_id = {group_id}')

def test_019_check_user_is_group_owner_by_telegram_id_1(self):
# Checking if there is only one user in a group
Expand Down

0 comments on commit 2cb49ca

Please sign in to comment.