Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
jsfehler committed Jun 4, 2024
1 parent 7081db5 commit e5656be
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions tests/test_djangoclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
django.setup()


class DjangoClientDriverTest(BaseBrowserTests):
class TestDjangoClientDriver(BaseBrowserTests):
@pytest.fixture(autouse=True, scope="class")
def setup_browser(self, request):
request.cls.browser = get_browser("django")
Expand Down Expand Up @@ -149,7 +149,7 @@ def test_cookies_extra_parameters(self):
assert timestamp == cookie["expires"]


class DjangoClientDriverTestWithCustomHeaders:
class TestDjangoClientDriverWithCustomHeaders:
@pytest.fixture(autouse=True, scope="class")
def setup_browser(self, request):
custom_headers = {
Expand Down
4 changes: 2 additions & 2 deletions tests/test_flaskclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from splinter import Browser


class FlaskClientDriverTest(BaseBrowserTests):
class TestFlaskClientDriver(BaseBrowserTests):
@pytest.fixture(autouse=True, scope="class")
def setup_browser(self, request):
request.cls.browser = get_browser("flask", app=app, wait_time=0.1)
Expand Down Expand Up @@ -172,7 +172,7 @@ def test_cookies_extra_parameters(self):
assert timestamp == int(cookie.expires.timestamp())


class FlaskClientDriverTestWithCustomHeaders:
class TestFlaskClientDriverWithCustomHeaders:
@pytest.fixture(autouse=True, scope="class")
def setup_browser(self, request):
custom_headers = {
Expand Down
4 changes: 2 additions & 2 deletions tests/test_webdriver_chrome.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .fake_webapp import EXAMPLE_APP


class ChromeBrowserTest(WebDriverTests):
class TestChromeBrowser(WebDriverTests):
@pytest.fixture(autouse=True, scope="class")
def setup_browser(self, request):
request.cls.browser = get_browser("chrome", fullscreen=False)
Expand All @@ -20,7 +20,7 @@ def visit_example_app(self, request):
self.browser.visit(EXAMPLE_APP)


class ChromeBrowserFullscreenTest(WebDriverTests):
class TestChromeBrowserFullscreen(WebDriverTests):
@pytest.fixture(autouse=True, scope="class")
def setup_browser(self, request):
request.cls.browser = get_browser("chrome", fullscreen=True)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_webdriver_edge_chromium.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .fake_webapp import EXAMPLE_APP


class EdgeChromiumBrowserTest(WebDriverTests):
class TestEdgeChromiumBrowser(WebDriverTests):
@pytest.fixture(autouse=True, scope="class")
def setup_browser(self, request):
request.cls.browser = get_browser("edge", fullscreen=False)
Expand All @@ -20,7 +20,7 @@ def visit_example_app(self, request):
self.browser.visit(EXAMPLE_APP)


class EdgeChromiumBrowserFullscreenTest(WebDriverTests):
class TestEdgeChromiumBrowserFullscreen(WebDriverTests):
@pytest.fixture(autouse=True, scope="class")
def setup_browser(self, request):
request.cls.browser = get_browser("edge", fullscreen=True)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_webdriver_firefox.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from splinter.config import Config


class FirefoxBrowserTest(WebDriverTests):
class TestFirefoxBrowser(WebDriverTests):
@pytest.fixture(autouse=True, scope="class")
def setup_browser(self, request):
request.cls.browser = get_browser("firefox", fullscreen=False)
Expand All @@ -22,7 +22,7 @@ def visit_example_app(self, request):
self.browser.visit(EXAMPLE_APP)


class FirefoxBrowserFullScreenTest(WebDriverTests):
class TestFirefoxBrowserFullScreen(WebDriverTests):
@pytest.fixture(autouse=True, scope="class")
def setup_browser(self, request):
request.cls.browser = get_browser("firefox", fullscreen=True)
Expand Down
6 changes: 3 additions & 3 deletions tests/test_webdriver_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def selenium_server_is_running():
return "WebDriver Hub" in page_contents


class RemoteBrowserFirefoxTest(WebDriverTests):
class TestRemoteBrowserFirefox(WebDriverTests):
@pytest.fixture(autouse=True, scope="class")
def setup_browser(self, request):
request.cls.browser = Browser("remote", browser="firefox")
Expand All @@ -41,7 +41,7 @@ def test_should_be_able_to_change_user_agent(self):
pass


class RemoteBrowserChromeTest(WebDriverTests):
class TestRemoteBrowserChrome(WebDriverTests):
@pytest.fixture(autouse=True, scope="class")
def setup_browser(self, request):
request.cls.browser = Browser("remote", browser="chrome")
Expand All @@ -62,7 +62,7 @@ def test_should_be_able_to_change_user_agent(self):


@pytest.mark.macos
class RemoteBrowserSafariTest(WebDriverTests):
class TestRemoteBrowserSafari(WebDriverTests):
@pytest.fixture(autouse=True, scope="class")
def setup_browser(self, request):
# test with statement. It can't be used as simple test
Expand Down
2 changes: 1 addition & 1 deletion tests/test_zopetestbrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from splinter import Browser


class ZopeTestBrowserDriverTest(BaseBrowserTests):
class TestZopeTestBrowserDriver(BaseBrowserTests):
@pytest.fixture(autouse=True, scope="class")
def setup_browser(self, request):
request.cls.browser = get_browser("zope.testbrowser", wait_time=0.1)
Expand Down

0 comments on commit e5656be

Please sign in to comment.