forked from dgubanovv/qa-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfw_2x_lom.py
32 lines (21 loc) · 837 Bytes
/
fw_2x_lom.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import os
import pytest
from infra.test_base import idparametrize
from tests.common.lom_test_base import LOMTestBase
from tools.utils import get_atf_logger
log = get_atf_logger()
def setup_module(module):
# import tools._test_setup # uncomment for manual test setup
os.environ["TEST"] = "TestFw2xLoM"
class TestFw2xLoM(LOMTestBase):
# dummy example how to reuse base class tests with idparametrize
@idparametrize("mode", ["serdes_only", "mdio/serdes"])
def test_check_who_am_i(self, mode):
super(TestFw2xLoM, self).test_check_who_am_i()
class TestFw2xLoM_Sleep(TestFw2xLoM):
@classmethod
def setup_class(cls):
cls.DUT_POWER_ACTION = cls.DUT_POWER_STATES.SUSPEND
super(TestFw2xLoM_Sleep, cls).setup_class()
if __name__ == "__main__":
pytest.main([__file__, "-s", "-v"])