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 True


Category: Django

Pytest equivalent of

unittest.TestCase.assertTrue()

is

assert some_condition.

For example

self.assertTrue(form.is_valid())

using pytest would be

assert form.is_valid().

✨Magic ✨