Skip to content

Commit

Permalink
#1440: Tests test on status 401 now to match code.
Browse files Browse the repository at this point in the history
For some strange reason the tests on the local PyCharm server worked both ways.
  • Loading branch information
susanodd committed Dec 17, 2024
1 parent e2ba1d9 commit a1dfa37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions signbank/dictionary/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ def test_create_and_delete_video(self):
print('User has logged out.')
print('Attempt to see video. Must log in.')
response = client.get(video_url)
self.assertEqual(response.status_code,200)
self.assertEqual(response.status_code,401)

# Remove the video
client.login(username='test-user',password='test-user')
Expand Down Expand Up @@ -1000,7 +1000,7 @@ def test_create_and_delete_utf8_video(self):
print('User has logged out.')
print('Attempt to see video. Must log in.')
response = client.get(video_url)
self.assertEqual(response.status_code,200)
self.assertEqual(response.status_code,401)

# Remove the video
client.login(username='test-user',password='test-user')
Expand Down

0 comments on commit a1dfa37

Please sign in to comment.