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

Add pyc and pys fixtures #293

Merged
merged 2 commits into from
Oct 25, 2022
Merged

Add pyc and pys fixtures #293

merged 2 commits into from
Oct 25, 2022

Conversation

ElSnoMan
Copy link
Owner

@ElSnoMan ElSnoMan commented Oct 25, 2022

#248

Changes

  • add pyc - a class-scoped Pylenium fixture

  • add pyc_config - a class-scoped PyleniumConfig

  • add pys - a session-scoped Pylenium fixture

  • add pys_config a session-scoped PyleniumConfig

Testing

All were tested using the tests within test_flows.py, but I got some interesting results:

  • session-scoped tests were about as fast as the default function-scoped tests (~12 seconds)
  • class-scoped tests were very slow... (~60 seconds)

💡 To be clear, you can use session- or function-scoped tests in a Test Class

@ElSnoMan ElSnoMan merged commit 6552bd9 into main Oct 25, 2022
@ElSnoMan ElSnoMan deleted the session-based branch October 25, 2022 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant