Changeset View
Changeset View
Standalone View
Standalone View
looper/tests/test_customer.py
- This file was moved from tests/test_customer.py.
| from typing import Any | from typing import Any | ||||
| from unittest.mock import patch | from unittest.mock import patch | ||||
| from django.contrib.auth.models import User | from django.contrib.auth.models import User | ||||
| from django_countries.fields import Country | from django_countries.fields import Country | ||||
| from looper.exceptions import GatewayError | from looper.exceptions import GatewayError | ||||
| from looper.gateways import PaymentMethodInfo | from looper.gateways import PaymentMethodInfo | ||||
| from looper.models import Address, Customer, Gateway, GatewayCustomerId, PaymentMethod | from looper.models import Address, Customer, Gateway, GatewayCustomerId, PaymentMethod | ||||
| from tests.base import AbstractBaseTestCase | from .base import AbstractBaseTestCase | ||||
| class AbstractSingleUserTestCase(AbstractBaseTestCase): | class AbstractSingleUserTestCase(AbstractBaseTestCase): | ||||
| fixtures = ['testuser'] | fixtures = ['testuser'] | ||||
| def setUp(self) -> None: | def setUp(self) -> None: | ||||
| self.user: User = User.objects.get(email='harry@blender.org') | self.user: User = User.objects.get(email='harry@blender.org') | ||||
| self.customer: Customer = Customer.objects.create(billing_email=self.user.email) | self.customer: Customer = Customer.objects.create(billing_email=self.user.email) | ||||
| ▲ Show 20 Lines • Show All 171 Lines • Show Last 20 Lines | |||||