FEM, Tests: Add setting static analysis

The tests from GUI were failing if FEM prefs were set to frequency analysis

Debugged by: sgrogan

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
This commit is contained in:
Przemo Firszt 2015-10-16 21:43:40 +01:00 committed by Yorik van Havre
parent b4352a18d1
commit a0d8042bff

View File

@ -188,6 +188,10 @@ class FemTest(unittest.TestCase):
fcc_print('Checking FEM inp file write...')
fcc_print('Setting analysis type to \'static\"')
fea.set_analysis_type("static")
self.assertTrue(True if fea.analysis_type == 'static' else False, "Setting anlysis type to \'static\' failed")
fcc_print('Setting up working directory {}'.format(static_analysis_dir))
fea.setup_working_dir(static_analysis_dir)
self.assertTrue(True if fea.working_dir == static_analysis_dir else False,