base_case.py 348 B

1234567891011121314151617
  1. import pytest
  2. from matlab_wrapper import *
  3. class TestBase:
  4. case_name = ''
  5. res = 0
  6. @pytest.fixture(scope='class')
  7. def Sim(self):
  8. res = run_sim(self.case_name)
  9. return res
  10. def test_Sim(self, Sim):
  11. assert Sim != None
  12. def test_Result(self, Sim, index):
  13. assert Sim[index][2] == 1, Sim[index][3]