mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Change scope secondary domain managment
This commit is contained in:
parent
edd6074025
commit
7e8a00b9dc
1 changed files with 2 additions and 2 deletions
|
@ -102,14 +102,14 @@ def check_permission_for_apps_call():
|
||||||
yield
|
yield
|
||||||
check_permission_for_apps()
|
check_permission_for_apps()
|
||||||
|
|
||||||
@pytest.fixture(scope="session")
|
@pytest.fixture(scope="module")
|
||||||
def secondary_domain(request):
|
def secondary_domain(request):
|
||||||
|
|
||||||
if "example.test" not in domain_list()["domains"]:
|
if "example.test" not in domain_list()["domains"]:
|
||||||
domain_add("example.test")
|
domain_add("example.test")
|
||||||
|
|
||||||
def remove_example_domain():
|
def remove_example_domain():
|
||||||
domain_remove("example.test", force=True)
|
domain_remove("example.test")
|
||||||
request.addfinalizer(remove_example_domain)
|
request.addfinalizer(remove_example_domain)
|
||||||
|
|
||||||
return "example.test"
|
return "example.test"
|
||||||
|
|
Loading…
Add table
Reference in a new issue