Skip to content

Instantly share code, notes, and snippets.

@Elise-Lennion
Created November 22, 2018 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Elise-Lennion/e78a909f1078dbdc2c58396fff281fb4 to your computer and use it in GitHub Desktop.
Save Elise-Lennion/e78a909f1078dbdc2c58396fff281fb4 to your computer and use it in GitHub Desktop.
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