Skip to content

Commit

Permalink
fix update_group_owner func №2
Browse files Browse the repository at this point in the history
  • Loading branch information
MothScientist committed Dec 16, 2024
1 parent 16ff2b5 commit 94cfa90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_database_queries_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ def test_027_update_group_owner_1(self):
pos: int = randint(2, TestDbQueries._number_of_users_group_3)
new_owner: int = TestDbQueries._data.get_user_data(group_id, pos, 'telegram_id')
res: bool = self.test_db.update_group_owner(new_owner, group_id)
self.assertTrue(res)
self.assertFalse(res)

new_owner_username: str = self.test_db.get_group_owner_username_by_group_id(group_id)
self.assertEqual(new_owner_username, TestDbQueries._data.get_user_data(group_id, pos, 'username'))
Expand Down

0 comments on commit 94cfa90

Please sign in to comment.