mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-24 07:18:09 +00:00
feat(tests): use trezorlib's builtin model list to fetch the pipelines
this includes D001 / D002, that probably doesn't matter
This commit is contained in:
parent
c31819b53f
commit
475673e894
@ -11,6 +11,8 @@ from typing import Any, Iterable, Iterator
|
|||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
from trezorlib import models
|
||||||
|
|
||||||
AnyDict = dict[Any, Any]
|
AnyDict = dict[Any, Any]
|
||||||
|
|
||||||
HERE = Path(__file__).parent
|
HERE = Path(__file__).parent
|
||||||
@ -18,7 +20,7 @@ HERE = Path(__file__).parent
|
|||||||
LIST_RUNS_TEMPLATE = "https://api.github.com/repos/trezor/trezor-firmware/actions/workflows/{workflow}/runs?branch={branch}"
|
LIST_RUNS_TEMPLATE = "https://api.github.com/repos/trezor/trezor-firmware/actions/workflows/{workflow}/runs?branch={branch}"
|
||||||
FIXTURES_TEMPLATE = "https://data.trezor.io/dev/firmware/ui_report/{run}/{model}-{lang}-{job}/fixtures.results.json"
|
FIXTURES_TEMPLATE = "https://data.trezor.io/dev/firmware/ui_report/{run}/{model}-{lang}-{job}/fixtures.results.json"
|
||||||
|
|
||||||
MODELS = ["T2T1", "T2B1", "T3T1"]
|
MODELS = [model.internal_name for model in models.TREZORS]
|
||||||
LANGUAGES = ["en", "cs", "de", "es", "fr", "it", "pt", "tr"]
|
LANGUAGES = ["en", "cs", "de", "es", "fr", "it", "pt", "tr"]
|
||||||
JOBS = ["core_device_test", "core_click_test", "core_persistence_test"]
|
JOBS = ["core_device_test", "core_click_test", "core_persistence_test"]
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user