diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-05-25 21:37:59 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-05-25 21:37:59 +0100 |
commit | fac76c9e24f38bdc7509e4909e5eaa842c151488 (patch) | |
tree | 63797bb2a21edfac80b90b075107ba91d3168a8f /ctrack/core | |
parent | 8a4cb3ebf3b620834cadd58a20ca59a403ad9b77 (diff) |
added selenium functional test
Diffstat (limited to 'ctrack/core')
-rw-r--r-- | ctrack/core/tests/test_functional.py | 14 |
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 |