Skip to content

Commit

Permalink
Set selenium webdriver test output to WARNING
Browse files Browse the repository at this point in the history
Originally was on DEBUG and was sending out mountains of output into the
pytest process which made it difficult to assess anything.
  • Loading branch information
msheiny committed Aug 17, 2018
1 parent c65ce57 commit a1f0134
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions securedrop/tests/functional/functional_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import mock
from multiprocessing import Process
import os
import logging
from os.path import abspath, dirname, join, realpath, expanduser
import signal
import socket
Expand All @@ -23,6 +24,7 @@
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.remote.remote_connection import LOGGER
from tbselenium.tbdriver import TorBrowserDriver

os.environ['SECUREDROP_ENV'] = 'test' # noqa
Expand All @@ -43,6 +45,7 @@
TBB_PATH = abspath(join(expanduser('~'), '.local/tbb/tor-browser_en-US/'))
os.environ['TBB_PATH'] = TBB_PATH
TBBRC = join(TBB_PATH, 'Browser/TorBrowser/Data/Tor/torrc')
LOGGER.setLevel(logging.WARNING)


# https://stackoverflow.com/a/34795883/837471
Expand Down

0 comments on commit a1f0134

Please sign in to comment.