Skip to content
This repository was archived by the owner on Jan 4, 2025. It is now read-only.

WIP: Example responses from Amazon and Example use files #241

Draft
Bobspadger wants to merge 42 commits intodevelopfrom
examples/xml
Draft

WIP: Example responses from Amazon and Example use files #241
Bobspadger wants to merge 42 commits intodevelopfrom
examples/xml

Conversation

@Bobspadger
Copy link
Copy Markdown
Member

Adding in example response files from real world calls to Amazon to help build on our test suite.

Example xml files in:
tests/xml_examples

Example code in:
examples

These can be moved and changed as we add,.

…for_id` method

- Single item response
- Multiple item response
…g_product_for_id` method.

This shows the following:

- Pulling api credentials either from Environment vars or variables.
- Initialising the products api.
- Using the Marketplaces enum helper.
- Parsing some response data.
- Outputting the original XML from Amazon to enable debugging / help requests.
- Making sure lists are not expected and converting as needed.
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 18, 2020

Codecov Report

Base: 85.32% // Head: 85.32% // No change to project coverage 👍

Coverage data is based on head (3ca2c1e) compared to base (1ecf050).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #241   +/-   ##
========================================
  Coverage    85.32%   85.32%           
========================================
  Files           33       33           
  Lines         1813     1813           
  Branches       252      252           
========================================
  Hits          1547     1547           
  Misses         227      227           
  Partials        39       39           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

…for_id` method

- Single item response
- Multiple item response
…g_product_for_id` method.

This shows the following:

- Pulling api credentials either from Environment vars or variables.
- Initialising the products api.
- Using the Marketplaces enum helper.
- Parsing some response data.
- Outputting the original XML from Amazon to enable debugging / help requests.
- Making sure lists are not expected and converting as needed.
@Bobspadger
Copy link
Copy Markdown
Member Author

@GriceTurrble due to the whoopsie with 0.8.12 I'm going to suggest we merge in these quick test files as they are a nice integration test to check that calls work on a live system

Do you have any issue with this? It would have caught the 0.8.12 bug as I could have run these easily against our live system.

…for_id` method

- Single item response
- Multiple item response
…g_product_for_id` method.

This shows the following:

- Pulling api credentials either from Environment vars or variables.
- Initialising the products api.
- Using the Marketplaces enum helper.
- Parsing some response data.
- Outputting the original XML from Amazon to enable debugging / help requests.
- Making sure lists are not expected and converting as needed.
…for_id` method

- Single item response
- Multiple item response
…g_product_for_id` method.

This shows the following:

- Pulling api credentials either from Environment vars or variables.
- Initialising the products api.
- Using the Marketplaces enum helper.
- Parsing some response data.
- Outputting the original XML from Amazon to enable debugging / help requests.
- Making sure lists are not expected and converting as needed.
@Bobspadger Bobspadger changed the base branch from develop to master March 18, 2021 18:10
@Bobspadger Bobspadger changed the base branch from master to develop March 18, 2021 18:10
@Bobspadger Bobspadger mentioned this pull request Dec 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants