Skip to content

Custom fixture cannot be used #2696

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

You must be logged in to vote

See #745 (comment)

That's the main reason why the sb fixture was created. (Example: SeleniumBase/examples/test_sb_fixture.py)

Most pytest fixtures have an incompatibility with unittest.TestCase, which SeleniumBase's BaseCase inherits. Use one of the sb pytest fixture formats from SeleniumBase/help_docs/syntax_formats.md. It allows you to use other pytest fixtures in your tests.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mdmintz
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