Skip to content

Commit dd05be1

Browse files
committed
Apply comments
1 parent 7880d6e commit dd05be1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cvat/apps/iam/tests/test_rest_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@ def test_register_account_with_different_email_case_than_in_invitation(self):
133133
response = self._post_request(
134134
"/api/organizations", self.admin, data={"slug": org_slug, "name": "Test organization"}
135135
)
136-
self.assertTrue(response.status_code == status.HTTP_201_CREATED)
136+
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
137137
response = self._post_request(
138138
"/api/invitations",
139139
self.admin,
140140
data={"role": "worker", "email": self.user_data["email"].upper()},
141141
query_params={"org": org_slug},
142142
)
143-
self.assertTrue(response.status_code == status.HTTP_201_CREATED)
143+
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
144144

145145
response = self._run_api_v2_user_register(self.user_data)
146146
self._check_response(
@@ -161,6 +161,6 @@ def test_register_account_with_different_email_case_than_in_invitation(self):
161161
format="json",
162162
data={"email": self.user_data["email"], "password": self.user_data["password1"]},
163163
)
164-
self.assertTrue(response.status_code == status.HTTP_200_OK)
164+
self.assertEqual(response.status_code, status.HTTP_200_OK)
165165
self.assertIn("sessionid", response.cookies)
166166
self.assertIn("csrftoken", response.cookies)

0 commit comments

Comments
 (0)