Skip to content
New issue

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

In tests, convert assert statements to self.assert() #46

Closed
sumit4613 opened this issue Sep 26, 2020 · 0 comments · Fixed by #48
Closed

In tests, convert assert statements to self.assert() #46

sumit4613 opened this issue Sep 26, 2020 · 0 comments · Fixed by #48
Labels
good first issue Easy to fix issues

Comments

@sumit4613
Copy link
Member

Convert all assert statements to use self.assert...().

Example:

assert User.objects.count() == 1

Convert the above assert statement like this

self.assertEqual(1, User.objects.count())

Please note that the expected value should be on the left and actual on right
expected == actual

@sumit4613 sumit4613 added the good first issue Easy to fix issues label Sep 26, 2020
@sumit4613 sumit4613 changed the title In tests, convert assert statements to self.assert() In tests, convert assert statements to self.assert() Sep 26, 2020
@wackyalien wackyalien mentioned this issue Sep 26, 2020
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Easy to fix issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant