Skip to content

Allow default improver to improve without affected packages#693

Merged
TG1999 merged 1 commit into
aboutcode-org:mainfrom
TG1999:fix/default_improver
Apr 18, 2022
Merged

Allow default improver to improve without affected packages#693
TG1999 merged 1 commit into
aboutcode-org:mainfrom
TG1999:fix/default_improver

Conversation

@TG1999

@TG1999 TG1999 commented Apr 11, 2022

Copy link
Copy Markdown
Contributor

Signed-off-by: Tushar Goel tushar.goel.dav@gmail.com

@TG1999
TG1999 force-pushed the fix/default_improver branch from f89dc23 to c5deeb1 Compare April 12, 2022 17:39
Comment thread vulnerabilities/tests/test_default_improver.py Outdated

@pombredanne pombredanne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM... but consider using file-driven tests for easier maintenance and updates. You my the nginx test branch merged first.

@TG1999
TG1999 force-pushed the fix/default_improver branch 4 times, most recently from 1576ec9 to bfaa17a Compare April 18, 2022 10:37
Comment thread vulnerabilities/tests/test_default_improver.py Outdated

@pombredanne pombredanne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@TG1999
TG1999 force-pushed the fix/default_improver branch 2 times, most recently from b346581 to 7b337cd Compare April 18, 2022 13:50
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
@TG1999
TG1999 force-pushed the fix/default_improver branch from 7b337cd to bc94910 Compare April 18, 2022 13:54
@TG1999
TG1999 merged commit 47f6ae6 into aboutcode-org:main Apr 18, 2022
"""
default_improver = DefaultImprover()
response_file = os.path.join(TEST_DATA, f"alpine-input.json")
with open(response_file, "r") as f:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

"r" is always the default FWIW, so not needed in general

Comment thread vulnerabilities/improvers/default.py
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.

3 participants