Skip to content

Commit 251895b

Browse files
committed
♻️ Remove test_constructor_invalid test
The `test_constructor_invalid` test in the `data/pseudo/test_pseudo.py` module was testing that the `PseudoPotentialData` constructor would fail with no input arguments. This behaviour was the expected behavior of the parent `SinglefileData` class, from which `PseudoPotentialData` inherits its constructor. However, the `SinglefileData` constructor now accepts no input arguments since the changes in: aiidateam/aiida-core@958bfd0 Which have been released in v2.7.0 of `aiida-core`. Hence, the test is no longer correct/necessary, and is removed here.
1 parent f49234b commit 251895b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

tests/data/pseudo/test_pseudo.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ def test_constructor_source_types(source):
3232
assert not pseudo.is_stored
3333

3434

35-
def test_constructor_invalid():
36-
"""Test the constructor for invalid arguments."""
37-
with pytest.raises(TypeError, match='missing 1 required positional argument'):
38-
PseudoPotentialData()
39-
40-
4135
@pytest.mark.usefixtures('chdir_tmp_path')
4236
@pytest.mark.parametrize('source_type', ('stream', 'str_absolute', 'str_relative', 'pathlib.Path'))
4337
@pytest.mark.parametrize('implicit', (True, False))

0 commit comments

Comments
 (0)