Skip to content

Commit

Permalink
fake flake8 :)
Browse files Browse the repository at this point in the history
  • Loading branch information
marazmiki committed Aug 22, 2014
1 parent 9559797 commit 89dba57
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
3 changes: 1 addition & 2 deletions onpay/management/__init__.py
Expand Up @@ -3,5 +3,4 @@
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division

from __future__ import division
3 changes: 1 addition & 2 deletions onpay/management/commands/__init__.py
Expand Up @@ -3,5 +3,4 @@
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division

from __future__ import division
13 changes: 4 additions & 9 deletions onpay/tests/__init__.py
Expand Up @@ -5,7 +5,6 @@
from __future__ import absolute_import
from __future__ import division
from django import test
from django.conf.urls import url
from django.core.urlresolvers import reverse_lazy
from django.utils import six
from django.utils.timezone import now
Expand All @@ -22,7 +21,6 @@
CRC_CHECK_CREATE = '8E1D15E585D02885B40BA7E69C7572FF'



class TestViews(test.TestCase):
urls = 'onpay.urls'

Expand All @@ -44,7 +42,7 @@ def test_check_form_valid(self):
'order_currency': self.order.currency,
'order_amount': 1.0,
'amount': 1.0,
'pay_for': self.order.pk,})
'pay_for': self.order.pk})

self.assertEquals(200, resp.status_code)
self.assertContains(resp, '<comment>OK</comment>')
Expand All @@ -56,7 +54,7 @@ def test_check_form_valid_md5_failed(self):
'order_currency': self.order.currency,
'order_amount': 1.0,
'amount': 1.0,
'pay_for': self.order.pk,})
'pay_for': self.order.pk})
self.assertEquals(400, resp.status_code)
self.assertIn('failed', resp.content)

Expand All @@ -79,8 +77,6 @@ def test_pay_form_valid(self):
self.assertContains(resp, '<comment>OK</comment>')
self.assertContains(resp, CRC_CHECK_CREATE)



# balance_amount = forms.FloatField()
# paid_amount = forms.FloatField()
# paymentDateTime = forms.CharField()
Expand All @@ -93,6 +89,7 @@ def test_pay_form_valid(self):
# day_to_expiry = forms.CharField(required=False)
# user_email = forms.EmailField()


class TestUtils(test.TestCase):
def test_create_order_full(self):
order = create_order(amount=10.0,
Expand Down Expand Up @@ -212,6 +209,4 @@ def test_crc_pay_get(self):

def test_crc_pay_create(self):
self.assertEquals(CRC_PAY_CREATE, self.order.crc_pay_create(onpay_id=ONPAY_ID,
order_amount=1.0))


order_amount=1.0))

0 comments on commit 89dba57

Please sign in to comment.