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

Update dependencies and api #1

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

ilugobayo
Copy link

The changes include:

  • Updating API endpoints in order to match with the current version.
  • Updating/adding tests for the changes made.
  • Closing the requests.Session object to avoid Resource Warnings when performing tests

Removes the option to define an API version, now it is hardcoded, setting it as v2
Removes everything regarding the fingerprint feature from the library code
Updates the existing API endpoints, and adds the endpoints for the blocklist and whitelist
Updates the name of the field feedbak_api_trans_code to bayonet_tracking_id in order to match with the current version of the API
Updates the request bodies used for the tests, this in order to match with the required structure in the current version of the API.
Also updates how the API key is added to the request body.
Updates the existing tests to match with the changes made to use the version v2 of the API
Adds test for the blocklist and whitelists, only the blocklist endpoint is used, since the function of both lists is the same in terms of restrictions and limitations
Adds a line to close the Session object after being used for the request to the API, this to get rid of a warning when running tests in Python 3.x (ResourceWarning: unclosed <ssl.SSLSocket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6...)
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