There is a code:
import unittest ... class TestCase_05_SomeTest(unittest.TestCase): @classmethod def setUpClass(cls): login_function(login=LOGIN, password=PASSWORD) ... if __name__ == "__main__": unittest.main() How can I run TestCase_05_SomeTest with different logins / passwords and where should I store them? Naturally, I have more than one test case and more than one step. There is no need to merge into TestSuite yet (although the proposal for solving this problem is also accepted).
login_functionshould be called exactly there. This is the job of preparing a function for a specific test that is "sponsored" by the data provider, or even the test itself. As far as I understand, you are generally trying to implement an integration / acceptance testing script, and there is no place for it at all in unit tests. - etki