Skip to content

Commit fc81640

Browse files
fundakolcfriedt
authored andcommitted
twister: Fix pytest warnings while discovers tests
Added `__test__ = False` to classes that have `Test` in the name. Signed-off-by: Lukasz Fundakowski <[email protected]>
1 parent 9d0d3ef commit fc81640

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/pylib/twister/twisterlib/testplan.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
from devicetree import edtlib # pylint: disable=unused-import
5050

5151
sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/"))
52+
53+
5254
class Filters:
5355
# platform keys
5456
PLATFORM_KEY = 'platform key filter'
@@ -68,11 +70,16 @@ class Filters:
6870
MODULE = 'Module filter'
6971
# in case of missing env. variable required for a platform
7072
ENVIRONMENT = 'Environment filter'
73+
74+
7175
class TestLevel:
7276
name = None
7377
levels = []
7478
scenarios = []
79+
80+
7581
class TestConfiguration:
82+
__test__ = False
7683
tc_schema_path = os.path.join(
7784
ZEPHYR_BASE,
7885
"scripts",

0 commit comments

Comments
 (0)