diff --git a/news/test.rst b/news/test.rst new file mode 100644 index 0000000..225407f --- /dev/null +++ b/news/test.rst @@ -0,0 +1,23 @@ +**Added:** + +* + +**Changed:** + +* + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* Surpress `RuntimeWarning` in tests for the `applycutoff` function + +**Security:** + +* diff --git a/tests/integration_test.py b/tests/integration_test.py index 44388dd..cd16228 100644 --- a/tests/integration_test.py +++ b/tests/integration_test.py @@ -1,4 +1,5 @@ import unittest +import warnings import h5py import numpy as np @@ -105,7 +106,9 @@ def test_applycutoff_range1(self): self.test_gui.qmaxentry.insert(0, "40") # when - self.test_gui.applycutoff() + with warnings.catch_warnings(): + warnings.simplefilter("ignore", category=RuntimeWarning) + self.test_gui.applycutoff() result = self.test_gui.cube # then @@ -119,7 +122,9 @@ def test_applycutoff_range2(self): self.test_gui.qmaxentry.insert(0, "35") # when - self.test_gui.applycutoff() + with warnings.catch_warnings(): + warnings.simplefilter("ignore", category=RuntimeWarning) + self.test_gui.applycutoff() result = self.test_gui.cube # then