Skip to content
Snippets Groups Projects
Commit 59347d71 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Updating tests

parent 8baff2e5
Branches
No related tags found
No related merge requests found
...@@ -10,11 +10,11 @@ options.headless = True ...@@ -10,11 +10,11 @@ options.headless = True
class SearchText(unittest.TestCase): class SearchText(unittest.TestCase):
def setUp(self): def setUp(self):
self.driver = webdriver.Firefox(options=options) self.driver = webdriver.Firefox(options=options)
self.driver.implicitly_wait(15) self.driver.implicitly_wait(10)
self.driver.get("http://localhost:8080") self.driver.get("http://localhost:8000")
def test_links(self): def test_maintenance_mode(self):
self.driver.find_element_by_link_text("VIPS").click() assert "Site down for maintenance" in self.driver.page_source
def tearDown(self): def tearDown(self):
self.driver.quit() self.driver.quit()
......
...@@ -23,3 +23,5 @@ Pillow ...@@ -23,3 +23,5 @@ Pillow
requests==2.6.0 requests==2.6.0
django-tinymce==2.8.0 django-tinymce==2.8.0
python-dateutil==1.5 python-dateutil==1.5
selenium
geckodriver
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment