forked from Github-Mirrors/canaille
chore: dependencies update
This commit is contained in:
parent
9e1b5e2a58
commit
127d56f713
2 changed files with 455 additions and 459 deletions
907
poetry.lock
generated
907
poetry.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -5,6 +5,7 @@ from babel.messages.frontend import compile_catalog
|
||||||
from flask_webtest import TestApp
|
from flask_webtest import TestApp
|
||||||
from jinja2 import FileSystemBytecodeCache
|
from jinja2 import FileSystemBytecodeCache
|
||||||
from jinja2 import StrictUndefined
|
from jinja2 import StrictUndefined
|
||||||
|
from pytest_lazy_fixtures import lf
|
||||||
from werkzeug.security import gen_salt
|
from werkzeug.security import gen_salt
|
||||||
|
|
||||||
from canaille import create_app
|
from canaille import create_app
|
||||||
|
@ -48,15 +49,13 @@ def pytest_generate_tests(metafunc):
|
||||||
if backend not in backends: # pragma: no cover
|
if backend not in backends: # pragma: no cover
|
||||||
pytest.skip()
|
pytest.skip()
|
||||||
elif "backend" in metafunc.fixturenames:
|
elif "backend" in metafunc.fixturenames:
|
||||||
metafunc.parametrize(
|
metafunc.parametrize("backend", [lf(f"{backend}_backend")])
|
||||||
"backend", [pytest.lazy_fixtures(f"{backend}_backend")]
|
|
||||||
)
|
|
||||||
return
|
return
|
||||||
|
|
||||||
elif "backend" in metafunc.fixturenames:
|
elif "backend" in metafunc.fixturenames:
|
||||||
metafunc.parametrize(
|
metafunc.parametrize(
|
||||||
"backend",
|
"backend",
|
||||||
[pytest.lazy_fixtures(f"{backend}_backend") for backend in backends],
|
[lf(f"{backend}_backend") for backend in backends],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue