Change scope secondary domain managment

This commit is contained in:
Josué Tille 2019-12-30 00:11:01 +01:00 committed by Alexandre Aubin
parent edd6074025
commit 7e8a00b9dc

View file

@ -102,14 +102,14 @@ def check_permission_for_apps_call():
yield
check_permission_for_apps()
@pytest.fixture(scope="session")
@pytest.fixture(scope="module")
def secondary_domain(request):
if "example.test" not in domain_list()["domains"]:
domain_add("example.test")
def remove_example_domain():
domain_remove("example.test", force=True)
domain_remove("example.test")
request.addfinalizer(remove_example_domain)
return "example.test"