Make koji and MBS client fixtures function scoped

This commit is contained in:
jobrauer
2020-11-30 09:24:40 +01:00
parent d264ea3337
commit bd4372315f

View File

@@ -76,13 +76,13 @@ def repo(scenario, test_env):
yield utils.Repo(module, branch)
@pytest.fixture(scope="session")
@pytest.fixture(scope="function")
def koji(test_env):
"""Koji session for the instance MBS is configured to work with."""
return utils.Koji(**test_env["koji"])
@pytest.fixture(scope="session")
@pytest.fixture(scope="function")
def mbs(test_env):
"""MBS instance session."""
return utils.MBS(test_env["mbs_api"])