Skip to content

While using pytest in -n mode, the window display is incomplete. #1860

Answered by mdmintz
ellieot asked this question in Q&A
Discussion options

You must be logged in to vote

Since your test class inherits BaseCase, you must use @parameterized.expand([[]] * 2) instead of @pytest.mark.parametrize("", [[]] * 2)

Example:

from parameterized import parameterized
from seleniumbase import BaseCase


class RepeatTests(BaseCase):
    @parameterized.expand([[]] * 2)
    def test_repeat_this_test_with_parameterized(self):
        self.open("seleniumbase.github.io")
        self.click('a[href="help_docs/method_summary/"]')
        self.assert_text("API Reference", "h1")

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ellieot
Comment options

@mdmintz
Comment options

Answer selected by ellieot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants