Skip to content

Commit

Permalink
skip more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz authored Aug 5, 2024
1 parent c979ff8 commit 2e0940c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions tests/analysis/test_piezo_sensitivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ def test_get_stable_fcm(self):
assert_allclose(asum1, np.zeros([3, 3]), atol=1e-5)
assert_allclose(asum2, np.zeros([3, 3]), atol=1e-5)

@pytest.mark.skipif(
sys.platform == "win32" and int(np.__version__[0]) >= 2,
reason="See https://github.com/conda-forge/phonopy-feedstock/pull/158#issuecomment-2227506701",
)
def test_rand_fcm(self):
pytest.importorskip("phonopy")
fcm = ForceConstantMatrix(self.piezo_struct, self.FCM, self.point_ops, self.shared_ops)
Expand Down
8 changes: 4 additions & 4 deletions tests/io/test_phonopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ def test_get_displaced_structures(self):


@pytest.mark.skipif(Phonopy is None, reason="Phonopy not present")
@pytest.mark.skipif(
sys.platform == "win32" and int(np.__version__[0]) >= 2,
reason="See https://github.com/conda-forge/phonopy-feedstock/pull/158#issuecomment-2227506701",
)
class TestPhonopyFromForceConstants(TestCase):
def setUp(self) -> None:
test_path = Path(TEST_DIR)
Expand All @@ -168,10 +172,6 @@ def setUp(self) -> None:
self.supercell_matrix = np.eye(3) * 2
self.force_constants = parse_FORCE_CONSTANTS(fc_file)

@pytest.mark.skipif(
sys.platform == "win32" and int(np.__version__[0]) >= 2,
reason="See https://github.com/conda-forge/phonopy-feedstock/pull/158#issuecomment-2227506701",
)
def test_get_phonon_dos_from_fc(self):
dos = get_phonon_dos_from_fc(
self.structure,
Expand Down

0 comments on commit 2e0940c

Please sign in to comment.