From fac76c9e24f38bdc7509e4909e5eaa842c151488 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 25 May 2020 21:37:59 +0100 Subject: added selenium functional test --- ctrack/core/tests/test_functional.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ctrack/core/tests/test_functional.py (limited to 'ctrack/core') 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 -- cgit v1.2.3