Created
November 22, 2018 19:35
-
-
Save Elise-Lennion/e78a909f1078dbdc2c58396fff281fb4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib.staticfiles.testing import StaticLiveServerTestCase | |
from selenium import webdriver | |
class TestName(StaticLiveServerTestCase): | |
@classmethod | |
def setUpClass(cls): | |
super().setUpClass() | |
cls.browser = webdriver.Firefox() | |
@classmethod | |
def tearDownClass(cls): | |
cls.browser.quit() | |
super().tearDownClass() | |
def setUp(self): | |
super(TestName, self).setUp() | |
# Populate the database here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment