1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-11 07:50:57 +00:00

tests: make altcoin check prettier

This commit is contained in:
matejcik 2019-08-26 18:25:22 +02:00
parent 77d4f02b3a
commit 1e4cf8d801

View File

@ -127,9 +127,8 @@ def pytest_runtest_setup(item):
if item.get_closest_marker("skip_t1") and item.get_closest_marker("skip_t2"):
pytest.fail("Don't skip tests for both trezors!")
if item.get_closest_marker("altcoin") and os.environ.get(
"TREZOR_PYTEST_SKIP_ALTCOINS", 0
):
skip_altcoins = int(os.environ.get("TREZOR_PYTEST_SKIP_ALTCOINS", 0))
if item.get_closest_marker("altcoin") and skip_altcoins:
pytest.skip("Skipping altcoin test")
if item.get_closest_marker("skip_t2") and TREZOR_VERSION == 2:
pytest.skip("Test excluded on Trezor T")