Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: self.assertEquals -> self.assertEqual #201

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pbsds
Copy link

@pbsds pbsds commented Nov 8, 2024

fixes tests on python312

@pbsds
Copy link
Author

pbsds commented Nov 8, 2024

example error:

pysnow> _______________________ TestResourceRequest.test_update ________________________
pysnow> 
pysnow> self = <tests.test_resource.TestResourceRequest testMethod=test_update>
pysnow> 
pysnow>     @httpretty.activate
pysnow>     def test_update(self):
pysnow>         """:meth:`update` should return a dictionary of the updated record"""
pysnow>     
pysnow>         httpretty.register_uri(
pysnow>             httpretty.GET,
pysnow>             self.mock_url_builder_base,
pysnow>             body=get_serialized_result(self.record_response_get_one),
pysnow>             status=200,
pysnow>             content_type="application/json",
pysnow>         )
pysnow>     
pysnow>         httpretty.register_uri(
pysnow>             httpretty.PUT,
pysnow>             self.mock_url_builder_sys_id,
pysnow>             body=get_serialized_result(self.record_response_update),
pysnow>             status=200,
pysnow>             content_type="application/json",
pysnow>         )
pysnow>     
pysnow>         response = self.resource.update(self.dict_query, self.record_response_update)
pysnow>         result = response.one()
pysnow>     
pysnow> >       self.assertEquals(type(result), dict)
pysnow> E       AttributeError: 'TestResourceRequest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?

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.

1 participant