Skip to content

Commit

Permalink
Update test_browser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen authored Feb 13, 2024
1 parent 3e94a69 commit 04acd6d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/project/test_browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,11 @@ def test_activate_gui(self):
self.assertIsInstance(gui_pr, Project,
msg="activate_gui should return a Project inherited from a pyiron_base Project.")
for attribute in object.__dir__(self.project):
self.assertTrue(hasattr(gui_pr, attribute),
msg=f"GuiProject does not have the {attribute} attribute from the Project.")
try:
self.assertTrue(hasattr(gui_pr, attribute),
msg=f"GuiProject does not have the {attribute} attribute from the Project.")
except ImportError: # some attributes might have additional requirements like conda_environment
pass
self.assertTrue(hasattr(gui_pr, 'browser'), msg="GuiProject does not have the added browser attribute.")
self.assertIsInstance(gui_pr.browser, ProjectBrowser,
msg='The browser attribute should return a ProjectBrowser')
Expand Down

0 comments on commit 04acd6d

Please sign in to comment.