Skip to content

Commit

Permalink
use relative import, TODO how to use abs import in this case?
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielYang59 committed Aug 25, 2024
1 parent 27550eb commit cf24f12
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion tests/io/aims/sets/test_bs_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

from __future__ import annotations

from aims.conftest import Si, comp_system
from pymatgen.io.aims.sets.bs import BandStructureSetGenerator
from pymatgen.util.testing import TEST_FILES_DIR

from ..conftest import Si, comp_system # noqa: TID252

SPECIES_DIR = TEST_FILES_DIR / "io/aims/species_directory"
REF_PATH = TEST_FILES_DIR / "io/aims/aims_input_generator_ref"

Expand Down
3 changes: 2 additions & 1 deletion tests/io/aims/sets/test_gw_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

from __future__ import annotations

from aims.conftest import Si, comp_system
from pymatgen.io.aims.sets.bs import GWSetGenerator
from pymatgen.util.testing import TEST_FILES_DIR

from ..conftest import Si, comp_system # noqa: TID252

SPECIES_DIR = TEST_FILES_DIR / "io/aims/species_directory"
REF_PATH = TEST_FILES_DIR / "io/aims/aims_input_generator_ref"

Expand Down
3 changes: 2 additions & 1 deletion tests/io/aims/sets/test_md_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

import pytest

from aims.conftest import Si, compare_files
from pymatgen.io.aims.sets.core import MDSetGenerator
from pymatgen.util.testing import TEST_FILES_DIR

from ..conftest import Si, compare_files # noqa: TID252

SPECIES_DIR = TEST_FILES_DIR / "io/aims/species_directory"
REF_PATH = TEST_FILES_DIR / "io/aims/aims_input_generator_ref"

Expand Down
3 changes: 2 additions & 1 deletion tests/io/aims/sets/test_relax_generator.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from __future__ import annotations

from aims.conftest import O2, Si, comp_system
from pymatgen.io.aims.sets.core import RelaxSetGenerator
from pymatgen.util.testing import TEST_FILES_DIR

from ..conftest import O2, Si, comp_system # noqa: TID252

SPECIES_DIR = TEST_FILES_DIR / "io/aims/species_directory"
REF_PATH = TEST_FILES_DIR / "io/aims/aims_input_generator_ref"

Expand Down
3 changes: 2 additions & 1 deletion tests/io/aims/sets/test_static_generator.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from __future__ import annotations

from aims.conftest import O2, Si, comp_system
from pymatgen.io.aims.sets.core import StaticSetGenerator
from pymatgen.util.testing import TEST_FILES_DIR

from ..conftest import O2, Si, comp_system # noqa: TID252

REF_PATH = TEST_FILES_DIR / "io/aims/aims_input_generator_ref"


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

from __future__ import annotations

from aims.conftest import O2, Si, comp_system
from pymatgen.io.aims.sets.core import StaticSetGenerator
from pymatgen.util.testing import TEST_FILES_DIR

from ..conftest import O2, Si, comp_system # noqa: TID252

SPECIES_DIR = TEST_FILES_DIR / "io/aims/species_directory"
REF_PATH = (TEST_FILES_DIR / "io/aims/aims_input_generator_ref").resolve()

Expand Down

0 comments on commit cf24f12

Please sign in to comment.