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

Request recording can't be enabled when running tests #300

Closed
apotterri opened this issue Apr 30, 2024 · 0 comments · Fixed by #305
Closed

Request recording can't be enabled when running tests #300

apotterri opened this issue Apr 30, 2024 · 0 comments · Fixed by #305
Labels
bug Something isn't working
Milestone

Comments

@apotterri
Copy link
Collaborator

It should be possible to enable request recording when running tests by setting APPMAP_RECORD_REQUESTS=true. Currently, it's not:

with rec, environ.disabled("requests"):
def disabled(self, recording_method: str):
key = _recording_method_key(recording_method)
value = self.get(key)
self.set(key, "false")

@apotterri apotterri added the bug Something isn't working label Apr 30, 2024
@apotterri apotterri added this to the v2 milestone Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants