mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-01 11:58:28 +00:00
fixup! test(core): add setUpClass and tearDownClass to core unit tests [no changelog]
This commit is contained in:
parent
5ab357f0e0
commit
c69cc06070
@ -245,12 +245,12 @@ def run_class(c, test_result):
|
|||||||
set_up_class()
|
set_up_class()
|
||||||
for name in dir(o):
|
for name in dir(o):
|
||||||
if name.startswith("test"):
|
if name.startswith("test"):
|
||||||
run_test(o, name, set_up, tear_down, test_result)
|
run_test_method(o, name, set_up, tear_down, test_result)
|
||||||
finally:
|
finally:
|
||||||
tear_down_class()
|
tear_down_class()
|
||||||
|
|
||||||
|
|
||||||
def run_test(o, name, set_up, tear_down, test_result):
|
def run_test_method(o, name, set_up, tear_down, test_result):
|
||||||
print(" ", name, end=" ...")
|
print(" ", name, end=" ...")
|
||||||
m = getattr(o, name)
|
m = getattr(o, name)
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user