Skip to content

Commit

Permalink
removed coverage requirement cap, fixed decreased coverage caused by
Browse files Browse the repository at this point in the history
silly code. #256
  • Loading branch information
kavdev committed Dec 23, 2015
1 parent 6f635e8 commit 3663d37
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions djstripe/views.py
Expand Up @@ -215,9 +215,7 @@ def post(self, request, *args, **kwargs):
if PRORATION_POLICY_FOR_UPGRADES:
current_subscription_amount = customer.current_subscription.amount
selected_plan_name = form.cleaned_data["plan"]
selected_plan = next(
(plan for plan in PLAN_LIST if plan["plan"] == selected_plan_name)
)
selected_plan = [plan for plan in PLAN_LIST if plan["plan"] == selected_plan_name][0] # TODO: refactor
selected_plan_price = selected_plan["price"] / decimal.Decimal("100")

# Is it an upgrade?
Expand Down
2 changes: 1 addition & 1 deletion requirements_test.txt
Expand Up @@ -3,7 +3,7 @@

# Testing tools
unittest2>=1.1.0
coverage<=3.7.1
coverage>=4.0.3
flake8>=2.5.1
mock>=1.3.0
nose>=1.3.7
Expand Down
4 changes: 2 additions & 2 deletions runtests.py
Expand Up @@ -5,7 +5,7 @@
import django
from django.conf import settings

from coverage import coverage
from coverage import Coverage
from termcolor import colored

TESTS_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
Expand All @@ -28,7 +28,7 @@ def run_test_suite(args):
enable_pep8 = not args.no_pep8

if enable_coverage:
cov = coverage(config_file=True)
cov = Coverage(config_file=True)
cov.erase()
cov.start()

Expand Down

0 comments on commit 3663d37

Please sign in to comment.