Changeset 13530


Ignore:
Timestamp:
Sep 18, 2019 5:37:21 PM (3 months ago)
Author:
amartensen
Message:

#5839 test that generate_html_diagnostics works with a model with dynamic states

Location:
trunk/Python/src/tests_jmodelica
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Python/src/tests_jmodelica/test_compiler.py

    r12127 r13530  
    391391        """
    392392        fmuname = compile_fmu(Test_Compiler_functions.cpath_mc, Test_Compiler_functions.fpath_mc, compiler_options={'generate_html_diagnostics':True})
     393        (diag_name, _) = os.path.splitext(fmuname)
     394        diag_name += '_html_diagnostics'
     395
     396        assert os.access(fmuname, os.F_OK) == True, \
     397               fmuname+" was not created."
     398        assert os.access(diag_name, os.F_OK) == True, \
     399               diag_name+" was not created."
     400        os.remove(fmuname)
     401        shutil.rmtree(diag_name)
     402
     403    @testattr(stddist_base = True)
     404    def test_dynamic_state_html_diagnostics(self):
     405        """
     406        Test that generate_html_diagnostics works with a model with dynamic states, see #5839
     407        """
     408
     409        fmuname = compile_fmu("ThreeDSOneEq", os.path.join(get_files_path(), 'Modelica', 'ThreeDSOneEq.mo'), compiler_options={'generate_html_diagnostics':True})
    393410        (diag_name, _) = os.path.splitext(fmuname)
    394411        diag_name += '_html_diagnostics'
Note: See TracChangeset for help on using the changeset viewer.