Skip to content

Commit

Permalink
test_rest_api.py: use JSON requests for users, like for everything else
Browse files Browse the repository at this point in the history
  • Loading branch information
SpecLad committed Mar 28, 2023
1 parent 8f64f62 commit dcb7fb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cvat/apps/engine/tests/test_rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ def test_api_v2_users_id_no_auth(self):
class UserPartialUpdateAPITestCase(UserAPITestCase):
def _run_api_v2_users_id(self, user, user_id, data):
with ForceLogin(user, self.client):
response = self.client.patch('/api/users/{}'.format(user_id), data=data)
response = self.client.patch('/api/users/{}'.format(user_id), data=data, format='json')

return response

Expand Down

0 comments on commit dcb7fb2

Please sign in to comment.