Warning
This document is for an old release of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.
Source code for galaxy_test.selenium.conftest
import os
import pytest
from galaxy_test.driver.driver_util import GalaxyTestDriver
from galaxy_test.selenium.framework import SeleniumTestCase
[docs]@pytest.fixture(scope="session")
def real_driver():
if not os.environ.get("GALAXY_TEST_ENVIRONMENT_CONFIGURED"):
driver = GalaxyTestDriver()
driver.setup(SeleniumTestCase)
try:
yield driver
finally:
driver.tear_down()
else:
yield None
[docs]@pytest.fixture(scope="class")
def embedded_driver(real_driver, request):
request.cls._test_driver = real_driver