Skip to content

Commit

Permalink
[#6] Removed profile view tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmckissock committed Aug 7, 2024
1 parent 1907299 commit 07c04c4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
11 changes: 0 additions & 11 deletions audioapp/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,6 @@ def setUp(self):
self.audio_files = [AudioFileFactory(user=self.user) for _ in range(5)]
self.client.login(username="testuser", password="password")

def test_profile_view_authenticated(self):
response = self.client.get(reverse("profile"))
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, "profile.html")
self.assertContains(response, self.audio_file.title)

def test_profile_view_unauthenticated(self):
self.client.logout()
response = self.client.get(reverse("profile"))
self.assertEqual(response.status_code, 302) # Redirect to login

def test_upload_audio_get(self):
response = self.client.get(reverse("upload_audio"))
self.assertEqual(response.status_code, 200)
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ click==8.1.7
cookiecutter==2.6.0
Django==5.0.7
django-allauth==0.63.6
django-htmx==1.19.0
django-tailwind==3.8.0
factory-boy==3.3.0
Faker==26.0.0
Expand Down

0 comments on commit 07c04c4

Please sign in to comment.