mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
tests: fix bad regex permission test because python3.11 now accepts ++ quantifier, so change the 'bad regex' trick
This commit is contained in:
parent
5564f7dc12
commit
5b9721eb23
1 changed files with 2 additions and 2 deletions
|
@ -806,7 +806,7 @@ def test_permission_main_url_regex():
|
|||
|
||||
def test_permission_main_url_bad_regex(mocker):
|
||||
with raiseYunohostError(mocker, "invalid_regex"):
|
||||
permission_url("blog.main", url="re:/[a-z]++reboy/.*")
|
||||
permission_url("blog.main", url="re:/[a-z]+++reboy/.*")
|
||||
|
||||
|
||||
@pytest.mark.other_domains(number=1)
|
||||
|
@ -837,7 +837,7 @@ def test_permission_add_additional_regex():
|
|||
|
||||
def test_permission_add_additional_bad_regex(mocker):
|
||||
with raiseYunohostError(mocker, "invalid_regex"):
|
||||
permission_url("blog.main", add_url=["re:/[a-z]++reboy/.*"])
|
||||
permission_url("blog.main", add_url=["re:/[a-z]+++reboy/.*"])
|
||||
|
||||
|
||||
def test_permission_remove_additional_url():
|
||||
|
|
Loading…
Add table
Reference in a new issue