Fundraising in PDF.
[wolnelektury.git] / src / club / payu / tests / integration.py
1 # This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
3 #
4 from django.contrib.staticfiles.testing import StaticLiveServerTestCase
5 from selenium.webdriver.firefox.webdriver import WebDriver
6
7
8 class SandboxTestCase(StaticLiveServerTestCase):
9     @classmethod
10     def setUpClass(cls):
11         super().setUpClass()
12         cls.selenium = WebDriver()
13         cls.selenium.implicitly_wait(10)
14
15     @classmethod
16     def tearDownClass(cls):
17         cls.selenium.quit()
18         super().tearDownClass()
19
20     def test_payment(self):
21         self.selenium.get('%s%s' % (self.live_server_url, '/pomagam/'))
22         from time import sleep
23         sleep(10)