Refactor existing tests to use new mixin classes

这个提交包含在:
nmannall
2024-11-25 15:16:15 +00:00
父节点 cb04fe9109
当前提交 b6db6d9700
共有 9 个文件被更改,包括 59 次插入77 次删除

查看文件

@@ -1,14 +1,15 @@
import reframe as rfm
from reframe.core.builtins import parameter, run_after
from reframe_tests.tests.base_tests import GprMaxAPIRegressionTest
from reframe_tests.tests.mixins import AntennaModelMixin, PythonApiMixin
from reframe_tests.tests.standard_tests import GprMaxRegressionTest
"""Reframe regression tests for subgrids
"""
@rfm.simple_test
class TestSubgrids(GprMaxAPIRegressionTest):
class TestSubgrids(PythonApiMixin, GprMaxRegressionTest):
tags = {
"test",
"api",
@@ -25,7 +26,7 @@ class TestSubgrids(GprMaxAPIRegressionTest):
@rfm.simple_test
class TestSubgridsWithAntennaModel(GprMaxAPIRegressionTest):
class TestSubgridsWithAntennaModel(AntennaModelMixin, PythonApiMixin, GprMaxRegressionTest):
tags = {
"test",
"api",
@@ -39,7 +40,6 @@ class TestSubgridsWithAntennaModel(GprMaxAPIRegressionTest):
}
sourcesdir = "src/subgrid_tests"
model = parameter(["gssi_400_over_fractal_subsurface"])
is_antenna_model = True
@run_after("init")
def skip_test(self):