PayU payments working.
[wolnelektury.git] / src / club / payu / tests / integration.py
diff --git a/src/club/payu/tests/integration.py b/src/club/payu/tests/integration.py
new file mode 100644 (file)
index 0000000..3619b90
--- /dev/null
@@ -0,0 +1,20 @@
+from django.contrib.staticfiles.testing import StaticLiveServerTestCase
+from selenium.webdriver.firefox.webdriver import WebDriver
+
+
+class SandboxTestCase(StaticLiveServerTestCase):
+    @classmethod
+    def setUpClass(cls):
+        super().setUpClass()
+        cls.selenium = WebDriver()
+        cls.selenium.implicitly_wait(10)
+
+    @classmethod
+    def tearDownClass(cls):
+        cls.selenium.quit()
+        super().tearDownClass()
+
+    def test_payment(self):
+        self.selenium.get('%s%s' % (self.live_server_url, '/towarzystwo/'))
+        from time import sleep
+        sleep(10)