We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tweetme-2/tweets/tests.py
Line 33 in 50a6e18
Line 39 in 50a6e18
Hello, thanks so much for this course. But I noticed a strange thing with the function test_tweet_list() in the class TweetTestCase().
Also, I had problems with ids for test objects and I changed all functions for tests without using ids. It is ok? For example test_action_like():
def test_action_like(self): client = self.get_client() tweet = Tweet.objects.filter(user=self.user).first() response = client.post("/api/tweets/action/", {"id": tweet.id, "action": "like"}) self.assertEqual(response.status_code, 200) like_count = response.json().get("likes") self.assertEqual(like_count, 1)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Tweetme-2/tweets/tests.py
Line 33 in 50a6e18
Tweetme-2/tweets/tests.py
Line 39 in 50a6e18
Hello, thanks so much for this course. But I noticed a strange thing with the function test_tweet_list() in the class TweetTestCase().
Also, I had problems with ids for test objects and I changed all functions for tests without using ids. It is ok? For example test_action_like():
The text was updated successfully, but these errors were encountered: