Welcome to my Blog!

Django Girls Harare blog published

Humphrey and I co-authored the blog post for the first ever Django Girls Harare workshop held on the 9th April 2016. The blog post was published a couple of weeks back on the Django Girls Blog. If you missed the news, you can view this post by following this link:

Django Girls Harare Blog Post

Hope you will enjoy our story!

Read More →
Search
Coding Tips

Pytest assert False


Category: Django

Pytest equivalent of

unittest.TestCase.assertFalse()

is

assert some_condition.

For example

self.assertFalse(form.is_valid())

using pytest would be

assert not form.is_valid().

✨Magic ✨