aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/core
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-05-25 21:37:59 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-05-25 21:37:59 +0100
commitfac76c9e24f38bdc7509e4909e5eaa842c151488 (patch)
tree63797bb2a21edfac80b90b075107ba91d3168a8f /ctrack/core
parent8a4cb3ebf3b620834cadd58a20ca59a403ad9b77 (diff)
added selenium functional test
Diffstat (limited to 'ctrack/core')
-rw-r--r--ctrack/core/tests/test_functional.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/ctrack/core/tests/test_functional.py b/ctrack/core/tests/test_functional.py
new file mode 100644
index 0000000..a802f22
--- /dev/null
+++ b/ctrack/core/tests/test_functional.py
@@ -0,0 +1,14 @@
+import pytest
+from selenium import webdriver
+
+
+@pytest.fixture
+def browser():
+ b = webdriver.Firefox()
+ yield b
+ b.quit()
+
+
+def test_can_get_homepage(browser):
+ browser.get("http://localhost:8000")
+ assert "ctrack" in browser.title