Remove nose.tools dependency
Summary
The nose
library is not maintained anymore and should be removed from the integration tests. Only simple one-liners from the nose.tools
are used (assert_equal
, assert_is_not_none
, ...) that can easily be replaced with custom code.
Remove nose.tools from
- test_affiliation.py
- test_data_model_leap.py
- test_deletion.py
- test_file.py
- test_list.py
- test_manual.py
- test_name_properties.py
- test_permissions.py
- test_query_template.py
- test_records.py
- test_recordtypes.py
- test_xmlparsing.py
Expected Behavior
The integration tests should not rely on a deprecated library that doesn't work anymore with Python 3.12.
Specifications
- Version:
- Platform: any
Possible fixes
Use
def assert_equal(a, b):
assert a == b
def assert_is_not_none(a):
assert a is not None
def assert_false(a):
assert not a
def assert_is_none(a):
assert a is None