Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions news/test.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* <news item>

**Changed:**

* <news item>

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* Surpress `RuntimeWarning` in tests for the `applycutoff` function

**Security:**

* <news item>
9 changes: 7 additions & 2 deletions tests/integration_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import unittest
import warnings

import h5py
import numpy as np
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down