Skip to content

Commit

Permalink
fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowone committed Jan 28, 2017
1 parent 257079d commit 46936b8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,22 @@ python:
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- "nightly"
# command to install dependencies
install:
- "pip install flake8 mock pytest pytest-cov python-coveralls ."
# command to run tests
script:
- "flake8 --ignore=E501 ."
- "py.test --cov=itunesiap -vv tests/"
- "pytest --cov=itunesiap -vv tests/"
after_success:
- "coveralls"
- bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
matrix:
allow_failures:
- python:
- "2.6"
- pypy
- pypy3
- nightly
1 change: 1 addition & 0 deletions itunesiap/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def extract(self):
options[item] = getattr(self, item)
return options


default = Environment(use_production=True, use_sandbox=False, verify_ssl=True)
production = Environment(use_production=True, use_sandbox=False, verify_ssl=True)
sandbox = Environment(use_production=False, use_sandbox=True, verify_ssl=True)
Expand Down
2 changes: 1 addition & 1 deletion itunesiap/receipt.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class InApp(ObjectMapper):
__WHITELIST__ = [
'quantity', 'product_id', 'transaction_id', 'original_transaction_id', 'is_trial_period',
'purchase_date', 'original_purchase_date', 'expires_date', 'cancellation_date',
'purchase_date_ms', 'original_purchase_date_ms', 'expires_date_ms', 'cancellation_date_ms', 'expires_date_formatted',]
'purchase_date_ms', 'original_purchase_date_ms', 'expires_date_ms', 'cancellation_date_ms', 'expires_date_formatted', ]
__EXPORT_FILTERS__ = {
'quantity': int,
'is_trial_period': _to_bool,
Expand Down

0 comments on commit 46936b8

Please sign in to comment.