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

Consider always keeping the cassette with default name #28

Closed
Stranger6667 opened this issue Jan 6, 2020 · 0 comments · Fixed by #30
Closed

Consider always keeping the cassette with default name #28

Stranger6667 opened this issue Jan 6, 2020 · 0 comments · Fixed by #30

Comments

@Stranger6667
Copy link
Collaborator

For example if there are a test and a cassette for it and then we need to add some common data:

@pytest.mark.vcr("extra.yaml")
def test_something():
    pass

In this case, we will look only into extra.yaml because of this - https://github.com/kiwicom/pytest-recording/blob/master/src/pytest_recording/plugin.py#L84

However, it is useful to be able to add some extra common data and still using some specific cassette for the test (named by the default rules). Now it is possible only with specifying it manually in the vcr mark

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 a pull request may close this issue.

1 participant