Skip to content

Commit

Permalink
Fix autodoc test
Browse files Browse the repository at this point in the history
  • Loading branch information
pnbabu committed Nov 20, 2023
1 parent d5e98ba commit a537ad2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/pynestml_frontend_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def test_codegeneration_autodoc(self):
path = str(os.path.realpath(os.path.join(os.path.dirname(__file__),
os.path.join(os.pardir, "models", "neurons", "iaf_psc_exp_neuron.nestml"))))
params = list()
params.append("nestml")
params.append("--input_path")
params.append(path)
params.append("--target_platform")
Expand All @@ -56,10 +55,8 @@ def test_codegeneration_autodoc(self):
params.append("--store_log")
params.append("--dev")

exit_code = None
with patch.object(sys, "argv", params):
exit_code = main()
self.assertTrue(exit_code == 0)
FrontendConfiguration.parse_config(params)
assert len(FrontendConfiguration.paths_to_compilation_units) == 1

def test_module_name_parsing_right_module_name_specified(self):
path = str(os.path.realpath(os.path.join(os.path.dirname(__file__), os.path.join(os.pardir, "models"))))
Expand Down

0 comments on commit a537ad2

Please sign in to comment.