Skip to content

Commit

Permalink
Merge branch 'main' into release/0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcapodi78 authored and maxcapodi78 committed Jun 7, 2022
2 parents 287a465 + 264416d commit 389aa2b
Show file tree
Hide file tree
Showing 89 changed files with 77,387 additions and 2,800 deletions.
22 changes: 0 additions & 22 deletions _unittest/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,25 +221,3 @@ def hfss():
yield hfss
hfss.close_project(hfss.project_name)
gc.collect()


from functools import wraps


def pyaedt_unittest_check_desktop_error(func):
@wraps(func)
def inner_function(*args, **kwargs):
args[0].cache.update()
ret_val = func(*args, **kwargs)
try:
pass
except Exception as e:
pytest.exit("Desktop Crashed - Aborting the test!")
args[0].cache.update()
# model_report = args[0].aedtapp.modeler.model_consistency_report
# assert not model_report["Missing Objects"]
# assert not model_report["Non-Existent Objects"]
assert args[0].cache.no_new_errors
return ret_val

return inner_function
Binary file added _unittest/example_models/SimpleChannel.aedtz
Binary file not shown.
Binary file added _unittest/example_models/cad/BRD/Galileo.brd
Binary file not shown.
Loading

0 comments on commit 389aa2b

Please sign in to comment.