Skip to content

Commit

Permalink
Merge pull request #103 from OpenDataServices/mw/chromedriver-auto
Browse files Browse the repository at this point in the history
Mw/chromedriver auto
  • Loading branch information
BibianaC committed Mar 19, 2021
2 parents 81a06b7 + c78ba10 commit 225bfdd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
3 changes: 2 additions & 1 deletion requirements_dev.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
black
flake8
selenium
coveralls
coveralls
chromedriver-autoinstaller
11 changes: 3 additions & 8 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ certifi==2020.12.5
# sentry-sdk
chardet==4.0.0
# via requests
chromedriver-autoinstaller==0.2.2
# via -r requirements_dev.in
click==7.1.2
# via
# black
Expand Down Expand Up @@ -71,11 +73,6 @@ gunicorn==20.0.4
# via -r requirements.in
idna==2.10
# via requests
importlib-metadata==1.7.0
# via
# django-bootstrap3
# flake8
# jsonschema
jdcal==1.4.1
# via openpyxl
json-merge-patch==0.2
Expand Down Expand Up @@ -181,9 +178,7 @@ xmltodict==0.12.0
# flattentool
# libcoveweb
zipp==1.2.0
# via
# importlib-metadata
# libcoveweb
# via libcoveweb

# The following packages are considered to be unsafe in a requirements file:
# pip
Expand Down
6 changes: 5 additions & 1 deletion standards_lab/ui/tests_browser.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os

import chromedriver_autoinstaller
from django.contrib.staticfiles.testing import StaticLiveServerTestCase
from django.test import override_settings
from selenium import webdriver
Expand All @@ -9,8 +10,11 @@

from utils.project import delete_project

# Ensure the correct version of chromedriver is installed
chromedriver_autoinstaller.install()

@override_settings(ROOT_PROJECTS_DIR="/tmp/standards-lab-test")

@override_settings(ROOT_PROJECTS_DIR="/tmp/standards-lab-test", DEBUG=True)
class BrowserTests(StaticLiveServerTestCase):
""" Browser test using latest Chrome/Chromium stable"""

Expand Down

0 comments on commit 225bfdd

Please sign in to comment.