Skip to content

Commit

Permalink
Added extra users to unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
PepperMoJ committed Nov 2, 2023
1 parent b2c5efa commit fe9053c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/tests/routes/test_api_route.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,17 @@ def test_adds_users(self):
app.create_app(mock_db_client).test_client().post('/api/user/add', json=users_post_data).data)
self.assertEqual(users_post_data, response)
mock_db_client.add_users.assert_called_once_with(
users_post_data['users'], ['connormaglynn', 'PepperMoJ'])
users_post_data['users'], [
'connormaglynn',
'PepperMoJ',
'githubgary',
'githubgeorge',
'KeithTheCoder',
'DaveTheCoder',
'sarahsaurus',
'PaulRudd',
'PaulRudd2'
])


class TestDeleteAllUsers(unittest.TestCase):
Expand Down

0 comments on commit fe9053c

Please sign in to comment.