mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-19 10:51:34 +08:00
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
34 lines
845 B
Python
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",
|
|
)
|