While pytest supports receiving fixtures via test function arguments for non-unittest test methods, unittest.TestCase methods cannot directly receive fixture function arguments as implementing that is likely to inflict on the ability to run general unittest.TestCase test suites.
From the note section at the bottom of: https://pytest.org/en/latest/unittest.html
It's possible to use fixtures with unittest.TestCase
es. See that page for more information.