I want to set up a unittest style test class, which uses a pytest fixture in the setUp method. Something like this:
def myTestClass(unittest.TestCase):
def setUp():
self.URL = fixture_url
def test_a():
# points tests at self.URL
It would have a conftest.py file which adds a command line option for the URL. (I have already built this, but I'm not sure how to set up the fixture.)
I want to have multiple test classes testing different features. Then I will run py.test giving a URL which all of the classes will use in their setUp.
If there is some other better way to achieve this I'd be happy to hear it!