mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-28 01:18:16 +00:00
71 lines
379 B
Python
71 lines
379 B
Python
from abc import ABC, abstractmethod
|
|
|
|
class TestScenario(ABC):
|
|
"""Parent class for test scenarios."""
|
|
|
|
@abstractmethod
|
|
def setup(self):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def run(self):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def teardown(self):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def log_data(self):
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|