Closed altendky closed 2 years ago
Hello @altendky
I agree with your tactical change, but you need to update your branch so that previous changes are taken into account. Thanks!
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
Catch up merge complete. Test added and confirmed to fail without the change.
Great job @altendky ! 👍🏻
Description
This is a naive resolution to https://github.com/CFMTech/pytest-monitor/issues/50. It may not really make sense but it does seem to avoid the exception by using
getattr(request.node, "monitor_results", False)
to both avoid the attribute error and to avoid running the rest of the code in this unexpected scenario.This is primarily being shared as a reference point. If you see other things that should be done feel free let me know, replace this with another PR, or just push changes here.
Fixes #50
Type of change
Checklist:
Status: Code Review Needed
,Business: Test Needed
orStatus: In Progress
if you are still working on the PR)~