Files
galaxy/test/integration_selenium/framework.py
T
Nicola Soranzo c35d8f2a06 Replace `unittest.TestCase` with pytest-based partial re-implementation
Also:
- Rename `FooBarTestCase` test classes as `TestFooBar`. These were collected
  by pytest only because they were `unittest.TestCase` derived, but normally
  pytest collects only test classes whose name starts with `Test`, see
  https://docs.pytest.org/en/7.1.x/reference/reference.html#confval-python_classes
2022-09-27 03:34:58 +01:00

34 lines
845 B
Python

from typing import TYPE_CHECKING
from galaxy_test.driver import integration_util
from galaxy_test.selenium import framework
if TYPE_CHECKING:
from galaxy_test.selenium.framework import SeleniumSessionDatasetPopulator
selenium_test = framework.selenium_test
class SeleniumIntegrationTestCase(
integration_util.IntegrationTestCase, framework.TestWithSeleniumMixin, framework.UsesLibraryAssertions
):
dataset_populator: "SeleniumSessionDatasetPopulator"
def setUp(self):
super().setUp()
self.setup_selenium()
def tearDown(self):
self.tear_down_selenium()
super().tearDown()
def restart(self, handle_reconfig=None):
super().restart(handle_reconfig=handle_reconfig)
self.reset_driver_and_session()
__all__ = (
"selenium_test",
"SeleniumIntegrationTestCase",
)