Skip to content

Commit

Permalink
also except timeout and assert incar tags as list
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielYang59 committed Aug 28, 2024
1 parent cbf596b commit 62306b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/io/vasp/test_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

try:
website_down = requests.get("https://www.vasp.at", timeout=5).status_code != 200
except requests.exceptions.ConnectionError:
except (requests.exceptions.ConnectionError, requests.exceptions.ReadTimeout):
website_down = True


Expand All @@ -37,4 +37,5 @@ def test_get_help(self, tag):

def test_get_incar_tags(self):
incar_tags = VaspDoc.get_incar_tags()
assert isinstance(incar_tags, list)
assert incar_tags

0 comments on commit 62306b6

Please sign in to comment.