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

fix(debug): fix --debug flag and associated tests #546

Closed
wants to merge 1 commit into from

Conversation

dylanpulver
Copy link
Collaborator

  • Fix --debug flag functionality
  • Add tests using runner.invoke
  • Fix and modify fetch_database function
  • Ensure all tests pass with appropriate patchings

@dylanpulver dylanpulver mentioned this pull request Jul 4, 2024
@yeisonvargasf yeisonvargasf linked an issue Jul 4, 2024 that may be closed by this pull request
safety/cli.py Show resolved Hide resolved
safety/cli.py Outdated Show resolved Hide resolved
safety/cli.py Outdated Show resolved Hide resolved
safety/safety.py Outdated Show resolved Hide resolved
safety/safety.py Outdated Show resolved Hide resolved
@dylanpulver dylanpulver force-pushed the fix/debug-flag branch 3 times, most recently from 7bebee7 to 0df74b1 Compare July 5, 2024 15:59
pass

dummy_function() # Call the decorated function

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think lines 545 and 565 should be deleted, because it's not actually necessary to call the function in order to trigger the behavior. in fact, it's important that the behavior gets triggered before the function is called.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, fixed now!

author Dylan Pulver <[email protected]> 1719603852 -0400
committer Dylan Pulver <[email protected]> 1720552637 -0400
@dylanpulver
Copy link
Collaborator Author

This PR got messed up in rebasing, moved to #552

@dylanpulver dylanpulver closed this Jul 9, 2024
@dylanpulver dylanpulver deleted the fix/debug-flag branch August 21, 2024 14:53
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 this pull request may close these issues.

Documentation: --debug
2 participants