mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #1662 from YunoHost/fix-options-tests
tests:options: fix missing patching data
This commit is contained in:
commit
06826b4fc0
1 changed files with 13 additions and 0 deletions
|
@ -1544,6 +1544,10 @@ class TestDomain(BaseTest):
|
||||||
]
|
]
|
||||||
# fmt: on
|
# fmt: on
|
||||||
|
|
||||||
|
def test_options_prompted_with_ask_help(self, prefill_data=None):
|
||||||
|
with patch_domains(domains=[main_domain], main_domain=main_domain):
|
||||||
|
super().test_options_prompted_with_ask_help(prefill_data=prefill_data)
|
||||||
|
|
||||||
def test_scenarios(self, intake, expected_output, raw_option, data):
|
def test_scenarios(self, intake, expected_output, raw_option, data):
|
||||||
with patch_domains(**data):
|
with patch_domains(**data):
|
||||||
super().test_scenarios(intake, expected_output, raw_option, data)
|
super().test_scenarios(intake, expected_output, raw_option, data)
|
||||||
|
@ -1751,6 +1755,15 @@ class TestUser(BaseTest):
|
||||||
]
|
]
|
||||||
# fmt: on
|
# fmt: on
|
||||||
|
|
||||||
|
@pytest.mark.usefixtures("patch_no_tty")
|
||||||
|
def test_basic_attrs(self):
|
||||||
|
with patch_users(
|
||||||
|
users={admin_username: admin_user},
|
||||||
|
admin_username=admin_username,
|
||||||
|
main_domain=main_domain,
|
||||||
|
):
|
||||||
|
self._test_basic_attrs()
|
||||||
|
|
||||||
def test_options_prompted_with_ask_help(self, prefill_data=None):
|
def test_options_prompted_with_ask_help(self, prefill_data=None):
|
||||||
with patch_users(
|
with patch_users(
|
||||||
users={admin_username: admin_user, regular_username: regular_user},
|
users={admin_username: admin_user, regular_username: regular_user},
|
||||||
|
|
Loading…
Add table
Reference in a new issue