Contact Details

Email: anna@makarudze.com

Send me a message:

Want to get in touch? Fill out the form below to send me a message and I will get back to you as soon as possible!


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 ✨