DevOps

Posts in this category

No posts available in this category at this time


Talks in this category

No talks available in this category at this time

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 ✨