Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make it compatible with unittest.TestCase #56

Merged
merged 2 commits into from
Jun 7, 2021

Conversation

mxschmitt
Copy link
Member

@mxschmitt mxschmitt commented Jun 7, 2021

Fixes #55 (verified)
Fixes #54 (verified)

def browser_name() -> None:
return None
def browser_name(pytestconfig: Any) -> Optional[str]:
# When using unittest.TestCase it won't use pytest_generate_tests
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upstream limitation see under notes: https://pytest.org/en/6.2.x/unittest.html

@mxschmitt mxschmitt force-pushed the bugfix/make-compatible-with-unitttest-testcase branch from 0ef4559 to 69b6456 Compare June 7, 2021 14:24
@@ -217,6 +217,30 @@ def context(

When using that all pages inside your test are created from the persistent context.

### Using with `unittest.TestCase`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could add this into the upstream docs. I think our readme should doc-free...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will probably follow up there.

@mxschmitt mxschmitt merged commit 36e5a49 into main Jun 7, 2021
@mxschmitt mxschmitt deleted the bugfix/make-compatible-with-unitttest-testcase branch June 7, 2021 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants