mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-19 06:22:16 +00:00
Started POM and assets test
This commit is contained in:
@@ -20,23 +20,12 @@ from RIGS import models
|
||||
from reversion import revisions as reversion
|
||||
from django.urls import reverse
|
||||
from django.core import mail, signing
|
||||
|
||||
|
||||
from PyRIGS.tests.base import create_browser
|
||||
from django.conf import settings
|
||||
|
||||
import sys
|
||||
|
||||
|
||||
def create_browser():
|
||||
options = webdriver.ChromeOptions()
|
||||
options.add_argument("--window-size=1920,1080")
|
||||
if os.environ.get('CI', False):
|
||||
options.add_argument("--headless")
|
||||
options.add_argument("--no-sandbox")
|
||||
driver = webdriver.Chrome(chrome_options=options)
|
||||
return driver
|
||||
|
||||
|
||||
class UserRegistrationTest(LiveServerTestCase):
|
||||
def setUp(self):
|
||||
self.browser = create_browser()
|
||||
|
||||
Reference in New Issue
Block a user