From 46936b846e6a762c3075298d41a3c41dbb5b2c83 Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Sun, 29 Jan 2017 01:00:48 +0900 Subject: [PATCH] fix flake8 --- .travis.yml | 4 +++- itunesiap/environment.py | 1 + itunesiap/receipt.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index aee829f..e1dfefb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ python: - "3.3" - "3.4" - "3.5" + - "3.6" - "nightly" # command to install dependencies install: @@ -13,13 +14,14 @@ install: # 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 diff --git a/itunesiap/environment.py b/itunesiap/environment.py index 81c14c8..53f90c1 100644 --- a/itunesiap/environment.py +++ b/itunesiap/environment.py @@ -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) diff --git a/itunesiap/receipt.py b/itunesiap/receipt.py index 2d5b40d..8dd550b 100644 --- a/itunesiap/receipt.py +++ b/itunesiap/receipt.py @@ -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,