-
Notifications
You must be signed in to change notification settings - Fork 874
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CONSTANT_CASE module-scoped TEST_DIR
- Loading branch information
Showing
47 changed files
with
563 additions
and
575 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,13 +13,13 @@ | |
__email__ = "[email protected]" | ||
__date__ = "07/30/18" | ||
|
||
test_dir = f"{TEST_FILES_DIR}/grain_boundary" | ||
TEST_DIR = f"{TEST_FILES_DIR}/grain_boundary" | ||
|
||
|
||
class TestGrainBoundary(PymatgenTest): | ||
@classmethod | ||
def setUpClass(cls): | ||
cls.Cu_conv = Structure.from_file(f"{test_dir}/Cu_mp-30_conventional_standard.cif") | ||
cls.Cu_conv = Structure.from_file(f"{TEST_DIR}/Cu_mp-30_conventional_standard.cif") | ||
GB_Cu_conv = GrainBoundaryGenerator(cls.Cu_conv) | ||
cls.Cu_GB1 = GB_Cu_conv.gb_from_parameters( | ||
[1, 2, 3], | ||
|
@@ -107,17 +107,17 @@ def test_as_dict_and_from_dict(self): | |
class TestGrainBoundaryGenerator(PymatgenTest): | ||
@classmethod | ||
def setUpClass(cls): | ||
cls.Cu_prim = Structure.from_file(f"{test_dir}/Cu_mp-30_primitive.cif") | ||
cls.Cu_prim = Structure.from_file(f"{TEST_DIR}/Cu_mp-30_primitive.cif") | ||
cls.GB_Cu_prim = GrainBoundaryGenerator(cls.Cu_prim) | ||
cls.Cu_conv = Structure.from_file(f"{test_dir}/Cu_mp-30_conventional_standard.cif") | ||
cls.Cu_conv = Structure.from_file(f"{TEST_DIR}/Cu_mp-30_conventional_standard.cif") | ||
cls.GB_Cu_conv = GrainBoundaryGenerator(cls.Cu_conv) | ||
cls.Be = Structure.from_file(f"{test_dir}/Be_mp-87_conventional_standard.cif") | ||
cls.Be = Structure.from_file(f"{TEST_DIR}/Be_mp-87_conventional_standard.cif") | ||
cls.GB_Be = GrainBoundaryGenerator(cls.Be) | ||
cls.Pa = Structure.from_file(f"{test_dir}/Pa_mp-62_conventional_standard.cif") | ||
cls.Pa = Structure.from_file(f"{TEST_DIR}/Pa_mp-62_conventional_standard.cif") | ||
cls.GB_Pa = GrainBoundaryGenerator(cls.Pa) | ||
cls.Br = Structure.from_file(f"{test_dir}/Br_mp-23154_conventional_standard.cif") | ||
cls.Br = Structure.from_file(f"{TEST_DIR}/Br_mp-23154_conventional_standard.cif") | ||
cls.GB_Br = GrainBoundaryGenerator(cls.Br) | ||
cls.Bi = Structure.from_file(f"{test_dir}/Bi_mp-23152_primitive.cif") | ||
cls.Bi = Structure.from_file(f"{TEST_DIR}/Bi_mp-23152_primitive.cif") | ||
cls.GB_Bi = GrainBoundaryGenerator(cls.Bi) | ||
|
||
def test_gb_from_parameters(self): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.