use a regular assert instead of unittest-style '{assertion}'
Bad code:
import unittest
class TestFoo(unittest.TestCase):
def test_foo(self):
self.assertEqual(a, b)
Good code:
import unittest
class TestFoo(unittest.TestCase):
def test_foo(self):
assert a == b
- to enforce the assertion style recommended by pytest
- to make use of pytest's assertion rewriting