Skip to content

Commit

Permalink
Fix servers test to work with Python 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkubi committed Jan 8, 2022
1 parent f496ab5 commit ea899d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/application/servers_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@ def test_create_server_without_allocation_or_location_raises(self):
def test_create_server_with_location(self, mock_api):
self.client.servers.create_server('test server', 1, 2, 3, 4, 5, 6,
location_ids=[7])
mock_api.assert_called()
mock_api.assert_called_with(mock.ANY)

@mock.patch('pydactyl.api.base.PterodactylAPI._api_request')
def test_create_server_with_allocation(self, mock_api):
self.client.servers.create_server('test server', 1, 2, 3, 4, 5, 6,
default_allocation=1234)
mock_api.assert_called()
mock_api.assert_called_with(mock.ANY)


if __name__ == '__main__':
Expand Down

0 comments on commit ea899d7

Please sign in to comment.