10BC0 Separating API Modules by GriceTurrble · Pull Request #55 · python-amazon-mws/python-amazon-mws · GitHub
[go: up one dir, main page]

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

Conversation

@GriceTurrble
Copy link
Member

No description provided.

GriceTurrble and others added 12 commits February 6, 2018 12:24
* Release for 0.8.0 (#42)

* Added Finances API Feature

* .setup.py: bump version to 0.7.5-dev0

* Split out request_description building from make_request()

So that it can be tested more easily, and refactored

* Split out building the initial params dict from make_request()

So that it can be tested more easily

* Add fake MWS credentials pytest fixture

* test_service_status() should use the pytest fake credentials fixture

* Add more pytest fixtures (access_key, secret_key, account_id, timestamp)

* Add test for calc_request_description()

* Split out calc_request_description() into more statements

So that it is easier to debug

* Fix calc_request_description - don't include leading ampersand

* Don't do automated deployments via Travis (for the moment)

* Update README.md badges

* InboundShipments, next_token_action decorator, and some style cleanups. (#33)

* Testing out git commits from VS Code

* Reverting the test commit

* Adding VS Code settings to gitignore.

* Style fixes

* MWS.enumerate_param deprecated: now using utils.enumerate_param and utils.enumerate_params

* InboundShipments fleshed out; added `utils.next_token_action` decorator; deprecated separate methods for `...by_next_token()`

* Bugfix, rename `_enumerate_param` to `enumerate_param` (no need for private)

* Fix for next_token issues.

* TravisCI flake8 complaining, fixes.

* Minor flake8 complaint.

* Hack to get flake8 to stop complaining.

* Strip pylint disables to clear line length issue.

* Correction to keyed params, now tests every item in values sequence to ensure all are dicts.

* Add tests for param methods in utils.

* Add test for next token decorator.

* Adding 'InboundShipments' to `__all__`

* Assigning response a default in __init__ for DictWrapper and DataWrapper

* Unneeded line breaks removed + docstring formatting

* Comment corrected. They're tuples, not sets.

* Finances methods updated to use next_token_action decorator

* Create .travis.yaml

* Update .gitignore

* Removing deploy code from local travis

* Delete .travis.yaml

* Pushed to 0.8.0-dev0

Recently added functionality to InboundShipments, as well as Finances API. These constitute feature additions with backwards compatibility, which calls for a minor version update.

* Adding Python 3.6 category

We are testing in 3.6 in Travis anyway. May as well include the note.

* Specified master and develop branches for badges

Ensured the badges for Travis and Codecov are pointing to the appropriate branches (used to be pointing to default, which was master in both cases).

* Updated comments throughout module

No substantial code changes, comment changes only. Also ensured all docstrings follow same format.

* Fixed docstring formatting

Also made slight update to docstring for ObjectDict to more clearly note what it does, vs what the original code did.

* Fix for flake8 (trailing whitespace)

* Fix for flake8 (trailing whitespace)

* Bump to 0.8.0 (drop dev tag) for release

* Bug: Incorrect use of `super` for back-compat

Using the old-style `super` syntax to comply with Python 2.7 compatibility. Not revealed in tests, because current tests don't touch the APIs. Whoops!

* Added back old object names in case needed

Old names `object_dict` and `xml2dict` added back in case the old objects are being used directly by some users.

To be removed in 1.0.0 release down the road.

* Version bump for agent string.

* Hi, howyadoin?

* Format request url with str.format

Remove old-style string formatting for sake of clarity.
@GriceTurrble GriceTurrble self-assigned this Mar 10, 2018
@codecov-io
Copy link

Codecov Report

Merging #55 into develop will increase coverage by 5.95%.
The diff coverage is 40.03%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop      #55      +/-   ##
===========================================
+ Coverage     43.4%   49.36%   +5.95%     
===========================================
  Files            4       17      +13     
  Lines          728      788      +60     
  Branches        82       82              
===========================================
+ Hits           316      389      +73     
+ Misses         398      384      -14     
- Partials        14       15       +1
Impacted Files Coverage Δ
mws/apis/outbound_shipments.py 0% <0%> (ø)
mws/__init__.py 100% <100%> (ø) ⬆️
mws/decorators.py 100% <100%> (ø)
mws/apis/__init__.py 100% <100%> (ø)
mws/utils.py 67.59% <100%> (-0.59%) ⬇️
mws/apis/offamazonpayments.py 52.77% <100%> (ø)
mws/apis/merchant_fulfillment.py 20% <20%> (ø)
mws/apis/inbound_shipments.py 20.22% <20.22%> (ø)
mws/apis/products.py 37.03% <37.03%> (ø)
mws/apis/reports.py 39.21% <39.21%> (ø)
... and 21 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3dc58c9...c3c95de. Read the comment docs.

@GriceTurrble GriceTurrble merged commit e8f4abe into develop Mar 10, 2018
@GriceTurrble GriceTurrble deleted the feature-split-mws-module branch March 10, 2018 20:05
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.

3 participants

0