-
Notifications
You must be signed in to change notification settings - Fork 61
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
Make _cassette_name a part of API #175
Comments
Why? |
I am using it to define more advanced fixtures. I could try to make the current fixtures more configurable but it will complicate the codebase. |
I genuinely don't understand your use case. What does "more advanced fixtures" mean? |
I have something along this lines in my client tests: @pytest.fixture(scope="session")
def recorder():
import betamax
import client
session = client.Client("http://localhost:8000")
with betamax.Betamax(session) as vrc:
yield vrc
@pytest.fixture
def session(request, recorder):
from betamax.fixtures.pytest import _casette_name
recorder.use_cassette(_casette_name(request, True))
yield recorder.session and I would like to make sure that |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rename
_ca(s)sette_name
helper function tocassette_name
to be a part of the API.The text was updated successfully, but these errors were encountered: