Skip to content

Commit

Permalink
corection test
Browse files Browse the repository at this point in the history
  • Loading branch information
nytsdayo committed Jun 30, 2024
1 parent 4e5dbe1 commit facc6fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion accounts/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def setUp(self):
def test_success_get(self):
url = reverse("accounts:user_profile", kwargs={"username": self.user.username})
response = self.client.get(url)
tweet_context = response.context["tweets"]
tweet_context = response.context["object_list"]
true_context = Model.objects.filter(creator__username=self.user)
self.assertQuerysetEqual(tweet_context, true_context, ordered=False)

Expand Down
2 changes: 1 addition & 1 deletion tweets/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_success_get(self):
response = self.client.get(reverse("tweets:home"))
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, "tweets/home.html")
tweet_context = response.context["tweets"]
tweet_context = response.context["object_list"]
true_context = Model.objects.all()
self.assertQuerysetEqual(tweet_context, true_context, ordered=False)

Expand Down

0 comments on commit facc6fe

Please sign in to comment.