Skip to content

Commit

Permalink
fix linux test
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcapodi78 authored and maxcapodi78 committed Oct 3, 2024
1 parent fd54e1d commit 677cd8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _unittest_solvers/test_01_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def test_virtual_compliance(self, local_scratch, aedtapp):
["X1_A5_PCIe_Gen4_RX1_P", "X1_A6_PCIe_Gen4_RX1_N", "U1_AR25_PCIe_Gen4_RX1_P",
"U1_AP25_PCIe_Gen4_RX1_N"], [7, 8, 18, 17]], pass_fail=True, pass_fail_criteria=3, name="ERL")
vc.save_configuration(f"{compliance_folder}\\main.json")
assert os.path.exists(f"{compliance_folder}\\main.json")
assert os.path.exists(os.path.join(compliance_folder, "main.json"))
v = VirtualCompliance(aedtapp.desktop_class, template)
assert v.create_compliance_report()

Expand Down
2 changes: 2 additions & 0 deletions src/ansys/aedt/core/generic/general_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -1349,6 +1349,7 @@ def _dict_toml(d):
new_dict = _dict_toml(input_dict)
with open_file(full_toml_path, "w") as fp:
tomllib.dump(new_dict, fp)
settings.logger.info(f"{full_toml_path} correctly created.")

Check warning on line 1352 in src/ansys/aedt/core/generic/general_methods.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/aedt/core/generic/general_methods.py#L1352

Added line #L1352 was not covered by tests
return True


Expand All @@ -1370,6 +1371,7 @@ def _create_json_file(json_dict, full_json_path):
with open_file(full_json_path, "w") as file:
file.write(filedata)
os.remove(temp_path)
settings.logger.info(f"{full_json_path} correctly created.")
return True


Expand Down

0 comments on commit 677cd8b

Please sign in to comment.