Перейти с PaymentWall на cloudpayments

remotes/origin/feature/cloudpayments
gzbender 7 years ago
parent cc87a10677
commit 987a42c93d
  1. 3
      apps/payment/tests.py
  2. 1
      apps/payment/tests/__init__.py
  3. 18
      apps/payment/tests/test_views.py
  4. 3
      project/tests/__init__.py

@ -1,3 +0,0 @@
from django.test import TestCase
# Create your tests here.

@ -0,0 +1 @@
# -*- coding: utf-8 -*-

@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
from django.test import TestCase
from django.shortcuts import reverse
from project.tests import SeleniumTestCase
from project.tests.factories import UserFactory, User
class PaymentsTestCase(SeleniumTestCase):
@classmethod
def setUpTestData(cls):
cls.simple_user = UserFactory(role=User.USER_ROLE)
def test_can_buy_school(self):
self.client.force_login(self.simple_user)
self.driver.get(reverse(''))

@ -2,9 +2,6 @@ from django.test import LiveServerTestCase
from selenium import webdriver from selenium import webdriver
from selenium.webdriver.common.by import By from selenium.webdriver.common.by import By
from pyvirtualdisplay import Display from pyvirtualdisplay import Display
from django.conf import settings
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from project.utils.selenium_utils import SeleniumExtensions as SE from project.utils.selenium_utils import SeleniumExtensions as SE
from apps.auth.models import TempToken from apps.auth.models import TempToken

Loading…
Cancel
Save