Skip to content
Snippets Groups Projects
Verified Commit 656eac5d authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

[Tests] Mark whole browser test file for db usage

parent 1d297a88
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,9 @@ from django.urls import reverse
import pytest
pytestmark = pytest.mark.django_db
SeleniumTestCaseBase.external_host = os.environ.get("TEST_HOST", "") or None
SeleniumTestCaseBase.browsers = list(
filter(bool, os.environ.get("TEST_SELENIUM_BROWSERS", "").split(","))
......@@ -27,13 +30,11 @@ class SeleniumTests(SeleniumTestCase):
else:
return False
@pytest.mark.django_db
def test_index(self):
self.selenium.get(self.live_server_url + "/")
assert "BiscuIT" in self.selenium.title
self._screenshot("index.png")
@pytest.mark.django_db
def test_login_default_superuser(self):
username = "admin"
password = "admin"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment