class TestProcessing(unittest.TestCase): def setUp(self): self.app = QApplication([]) self.post = PostProcessor() # load some test data sets self.post._load_result_file("data/step_response.pmr") def test_postprocessor(self): self.post.run_processor("StepResponse") def tearDown(self): del self.post
class TestProcessing(unittest.TestCase): def setUp(self): self.app = QApplication([]) self.post = PostProcessor() # load some test data sets path = os.path.join("data", "step_response.pmr") self.post._load_result_file(path) def test_postprocessor(self): self.post.run_processor("StepResponse", processor_type="post") self.assertTrue(os.path.isfile(os.path.join("results", "processing", "StepResponse", "test-nonlinear.pof"))) def tearDown(self): del self.post