Skip to content

Commit f44ccba

Browse files
committed
fix broken test by sorting both lists
1 parent 45bc110 commit f44ccba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎tests/tests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_index_view_with_endpoints(self):
3131

3232
# Test the login view
3333
self.assertEqual(response.context["endpoints"][0].name_parent, "accounts")
34-
self.assertEqual(response.context["endpoints"][0].allowed_methods, ['POST', 'OPTIONS'])
34+
self.assertEqual(sorted(response.context["endpoints"][0].allowed_methods), sorted(['OPTIONS', 'POST']))
3535
self.assertEqual(response.context["endpoints"][0].path, "/accounts/login/")
3636
self.assertEqual(response.context["endpoints"][0].docstring, "A view that allows users to login providing their username and password.")
3737
self.assertEqual(len(response.context["endpoints"][0].fields), 2)

0 commit comments

Comments
 (0)