mirror of
https://github.com/scito/extract_otp_secret_keys.git
synced 2025-12-11 17:16:43 +01:00
remove dependency to module and fix build script
This commit is contained in:
parent
2707e244be
commit
3502294172
2 changed files with 4 additions and 5 deletions
2
build.sh
2
build.sh
|
|
@ -317,7 +317,7 @@ eval "$cmd"
|
||||||
|
|
||||||
# Build wheel
|
# Build wheel
|
||||||
|
|
||||||
cmd="$PIP wheel .
|
cmd="$PIP wheel ."
|
||||||
if $interactive ; then askContinueYn "$cmd"; else echo -e "${cyan}$cmd${reset}";fi
|
if $interactive ; then askContinueYn "$cmd"; else echo -e "${cyan}$cmd${reset}";fi
|
||||||
eval "$cmd"
|
eval "$cmd"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,6 @@ from typing import Any
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from extract_otp_secrets import QRMode
|
|
||||||
|
|
||||||
|
|
||||||
def pytest_addoption(parser: pytest.Parser) -> None:
|
def pytest_addoption(parser: pytest.Parser) -> None:
|
||||||
parser.addoption("--relaxed", action='store_true', help="run tests in relaxed mode")
|
parser.addoption("--relaxed", action='store_true', help="run tests in relaxed mode")
|
||||||
|
|
@ -17,6 +15,7 @@ def relaxed(request: pytest.FixtureRequest) -> Any:
|
||||||
|
|
||||||
def pytest_generate_tests(metafunc: pytest.Metafunc) -> None:
|
def pytest_generate_tests(metafunc: pytest.Metafunc) -> None:
|
||||||
if "qr_mode" in metafunc.fixturenames:
|
if "qr_mode" in metafunc.fixturenames:
|
||||||
number = 2 if metafunc.config.getoption("fast") else len(QRMode)
|
all_qr_modes = ['ZBAR', 'QREADER', 'QREADER_DEEP', 'CV2', 'CV2_WECHAT']
|
||||||
qr_modes = [mode.name for mode in QRMode]
|
number = 2 if metafunc.config.getoption("fast") else len(all_qr_modes)
|
||||||
|
qr_modes = [mode for mode in all_qr_modes]
|
||||||
metafunc.parametrize("qr_mode", qr_modes[0:number])
|
metafunc.parametrize("qr_mode", qr_modes[0:number])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue