Skip to content

Commit

Permalink
fixed newstesting after login_required changes
Browse files Browse the repository at this point in the history
tncrdk committed Apr 4, 2024
1 parent 8c70e02 commit 9b8a39f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nablapps/news/tests/test_news.py
Original file line number Diff line number Diff line change
@@ -23,6 +23,7 @@ def setUp(self):
self.body = "Haha, jeg lurte deg. Det er ikke så spennende alikevel."
self.news.created_by = self.user
self.news.save()
self.client.force_login(self.user)

# Prøver å laste inn siden til nyheten og tar vare på resultatet
self.response = self.client.get(self.news.get_absolute_url())

0 comments on commit 9b8a39f

Please sign in to comment.