Skip to content

Commit 9899b69

Browse files
committed
[fix] Fixed test
1 parent 24ea052 commit 9899b69

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

openwisp_radius/tests/test_api/test_phone_verification.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ def test_phone_token_status_400_not_member(self):
338338
self.assertIn("non_field_errors", r.data)
339339
self.assertIn("is not member", str(r.data["non_field_errors"]))
340340

341-
@freeze_time(_TEST_DATE)
342341
@capture_any_output()
342+
@freeze_time(_TEST_DATE)
343343
def test_validate_phone_token_200(self):
344344
self.test_create_phone_token_201()
345345
user = User.objects.get(email=self._test_email)
@@ -828,7 +828,7 @@ def _create_user_helper(self, options):
828828
r1 = self.client.post(
829829
url,
830830
content_type="application/json",
831-
HTTP_AUTHORIZATION=f'Bearer {r.data["key"]}',
831+
HTTP_AUTHORIZATION=f"Bearer {r.data['key']}",
832832
)
833833
self.assertEqual(r1.status_code, 201)
834834

0 commit comments

Comments
 (0)