aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Orling <tim.orling@konsulko.com>2023-11-09 07:56:37 -0800
committerTim Orling <tim.orling@konsulko.com>2023-11-09 07:56:37 -0800
commitae15d2b801e1cb1482dff6afdd81085e7c5df0d1 (patch)
tree2046bb8fe155ca8dbb10b55d6f7f2ddc540f439d
parent2dc5f7a8e180a1cba0f0cc12a7b9dbc381a2b9bf (diff)
downloadbitbake-contrib-timo/toaster-review-v3.tar.gz
toaster: functional_helpers.py mark django_dbtimo/toaster-review-v3
Fix error about database access by using @pytest.mark.django_db on the class Signed-off-by: Tim Orling <tim.orling@konsulko.com>
-rw-r--r--lib/toaster/tests/functional/functional_helpers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/toaster/tests/functional/functional_helpers.py b/lib/toaster/tests/functional/functional_helpers.py
index c3191f664..5884c324f 100644
--- a/lib/toaster/tests/functional/functional_helpers.py
+++ b/lib/toaster/tests/functional/functional_helpers.py
@@ -13,6 +13,7 @@ import subprocess
import signal
import time
import re
+import pytest
from tests.browser.selenium_helpers_base import SeleniumTestCaseBase
from tests.builds.buildtest import load_build_environment
@@ -22,6 +23,7 @@ from selenium.common.exceptions import NoSuchElementException
logger = logging.getLogger("toaster")
+@pytest.mark.django_db
class SeleniumFunctionalTestCase(SeleniumTestCaseBase):
wait_toaster_time = 5