Skip to content

pytest: Don't use nose like syntax in graphene/relay/tests/test_custom_global_id.py (#1539)#1540

Merged
erikwrede merged 2 commits intographql-python:masterfrom
tijuca:remove_nose_test_syntax
Jun 13, 2024
Merged

pytest: Don't use nose like syntax in graphene/relay/tests/test_custom_global_id.py (#1539)#1540
erikwrede merged 2 commits intographql-python:masterfrom
tijuca:remove_nose_test_syntax

Conversation

@tijuca
Copy link
Contributor

@tijuca tijuca commented Mar 24, 2024

The tests in test_custom_global_id.py use the old nose specific method 'setup(self)' which isn't supported anymore in Pytest 8+.

https://daobook.github.io/pytest/deprecations.html#setup-teardown

tijuca and others added 2 commits March 24, 2024 05:53
The tests in test_custom_global_id.py use the old nose specific method
'setup(self)' which isn't supported anymore in Pytest 8+. The tests fail
with this error message without modification.

E               pytest.PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release.
E               graphene/relay/tests/test_custom_global_id.py::TestIncompleteCustomGlobalID::test_must_define_resolve_global_id is using nose-specific method: `setup(self)`
E               To remove this warning, rename it to `setup_method(self)`
E               See docs: https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nose
@erikwrede
Copy link
Member

thanks for the pr!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants