File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change 24
24
25
25
26
26
class PymatgenTest (unittest .TestCase ):
27
- """
28
- Extends unittest.TestCase with functions (taken from numpy.testing.utils)
29
- that support the comparison of arrays.
30
- """
27
+ """Extends unittest.TestCase with several assert methods for array and str comparison."""
31
28
32
29
_multiprocess_shared_ = True
33
30
MODULE_DIR = Path (__file__ ).absolute ().parent
34
31
STRUCTURES_DIR = MODULE_DIR / "structures"
35
- try :
36
- TEST_FILES_DIR = Path (SETTINGS ["PMG_TEST_FILES_DIR" ])
37
- except KeyError :
38
- import warnings
39
-
40
- warnings .warn (
41
- "It is recommended that you set the PMG_TEST_FILES_DIR environment variable explicitly. "
42
- "Now using a fallback location based on relative path from this module."
43
- )
44
- TEST_FILES_DIR = MODULE_DIR / ".." / ".." / "test_files"
32
+ TEST_FILES_DIR = Path (SETTINGS .get ("PMG_TEST_FILES_DIR" , MODULE_DIR / ".." / ".." / "test_files" ))
45
33
46
34
TEST_STRUCTURES : ClassVar [dict [str , Structure ]] = {} # Dict for test structures to aid testing.
47
35
for fn in STRUCTURES_DIR .iterdir ():
You can’t perform that action at this time.
0 commit comments