Skip to content

Commit

Permalink
bug fixes in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gelzinyte committed Jun 10, 2024
1 parent 499e593 commit 0637dcd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/calculators/test_aims.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@
from ase.config import cfg as ase_cfg
from ase.calculators.aims import AimsProfile

profile = AimsProfile.from_config(ase_cfg, "aims")
species_dir = vars(profile).get("default_species_directory", None)
if "aims" in ase_cfg.parser:
profile = AimsProfile.from_config(ase_cfg, "aims")
species_dir = vars(profile).get("default_species_directory", None)
else:
species_dir = None

aims_prerequisites = pytest.mark.skipif(
condition = 'aims' not in ase_cfg.parser or species_dir is None
Expand Down
1 change: 1 addition & 0 deletions tests/calculators/test_calc_generic.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import sys
from os.path import join
from io import StringIO
import pytest

import numpy as np
from ase import Atoms
Expand Down

0 comments on commit 0637dcd

Please sign in to comment.