New annoying banner.
[wolnelektury.git] / src / club / payu / tests / integration.py
1 from django.contrib.staticfiles.testing import StaticLiveServerTestCase
2 from selenium.webdriver.firefox.webdriver import WebDriver
3
4
5 class SandboxTestCase(StaticLiveServerTestCase):
6     @classmethod
7     def setUpClass(cls):
8         super().setUpClass()
9         cls.selenium = WebDriver()
10         cls.selenium.implicitly_wait(10)
11
12     @classmethod
13     def tearDownClass(cls):
14         cls.selenium.quit()
15         super().tearDownClass()
16
17     def test_payment(self):
18         self.selenium.get('%s%s' % (self.live_server_url, '/towarzystwo/'))
19         from time import sleep
20         sleep(10)