1234567891011121314151617 |
- import pytest
- from matlab_wrapper import *
- class TestBase:
- case_name = ''
- res = 0
- @pytest.fixture(scope='class')
- def Sim(self):
- res = run_sim(self.case_name)
- return res
- def test_Sim(self, Sim):
- assert Sim != None
- def test_Result(self, Sim, index):
- assert Sim[index][2] == 1, Sim[index][3]
|