diff --git a/news/correct-test-skip-message.rst b/news/correct-test-skip-message.rst new file mode 100644 index 0000000..855b857 --- /dev/null +++ b/news/correct-test-skip-message.rst @@ -0,0 +1,23 @@ +**Added:** + +* No news added: Correct messages for skipping tests involving diffpy.srreal. + +**Changed:** + +* + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* + +**Security:** + +* diff --git a/tests/test_pdf.py b/tests/test_pdf.py index c6cffd1..1ee2cce 100644 --- a/tests/test_pdf.py +++ b/tests/test_pdf.py @@ -221,7 +221,7 @@ def test_setQmax(diffpy_structure_available, diffpy_srreal_available): from diffpy.structure import Structure if not diffpy_srreal_available: - pytest.skip("diffpy.structure package not available") + pytest.skip("diffpy.srreal package not available") pc = PDFContribution("pdf") pc.setQmax(21) @@ -240,7 +240,7 @@ def test_getQmax(diffpy_structure_available, diffpy_srreal_available): from diffpy.structure import Structure if not diffpy_srreal_available: - pytest.skip("diffpy.structure package not available") + pytest.skip("diffpy.srreal package not available") # cover all code branches in PDFContribution._getMetaValue # (1) contribution metadata @@ -269,7 +269,7 @@ def test_savetxt( from diffpy.structure import Structure if not diffpy_srreal_available: - pytest.skip("diffpy.structure package not available") + pytest.skip("diffpy.srreal package not available") pc = PDFContribution("pdf") pc.loadData(datafile("si-q27r60-xray.gr")) @@ -295,7 +295,7 @@ def test_pickling( from diffpy.structure import loadStructure if not diffpy_srreal_available: - pytest.skip("diffpy.structure package not available") + pytest.skip("diffpy.srreal package not available") pc = PDFContribution("pdf") pc.loadData(datafile("ni-q27r100-neutron.gr"))