Skip to content

Question about fixture_batch_size in conftest.py #269

Closed Answered by Scienfitz
Waschenbacher asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Waschenbacher

This is a custom marker form us. When you run pytest you can use the optional argument --fast. This then will skip all tests and fixture variants that have been marked with mark.slow. The logic implementing that is in conftest.py

The naming here is prob a bit counterintuitive as a batch recommendation with 3 is likely slower than with 1. But the logic of marking the variant with batch_size=1 as slow stems from us not wanting to test both batch sizes 1 and 3 if the user wants to do --fast, so we decided in that case just 3 will be done as batch_size > 1 is the more complex use case that should be covered.

We don't use the --fast mechanism much anyway tbh as we mostly do …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AdrianSosic
Comment options

Answer selected by Waschenbacher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
3 participants
Converted from issue

This discussion was converted from issue #268 on June 14, 2024 08:03.