-
Notifications
You must be signed in to change notification settings - Fork 8
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
Supression #20
Supression #20
Conversation
@angrymeir when you will have some time can you take a look at this change ? :) |
@angrymeir Will you find a time this week to look at this change? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow! This looks super awesome - great work!!! Really, thats some next level shit 🎉
|
||
def test_get_config_no_file(self): | ||
# given: | ||
input_config_path = "resources/test_config/test_get_config_no_file/ss2ju-config.yml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The actual path here is
resources/test_config/test_get_config_empty_file/ss2ju-config.yml
:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added empty test_get_config_no_file
dir, and this test is checking if when file does not exist, the program should return empty config
tests/test_config.py
Outdated
|
||
# then: | ||
expected = Config([Suppression('cwe', '2555'), Suppression('find_sec_bugs_type', 'SPRING_ENDPOINT')]) | ||
assert expected == config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this assert statement is redundant, as assertEqual
is based on "==" (see here). Or am I missing something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are rigth :)
from junit_xml import TestSuite, TestCase | ||
|
||
# is it correct import changed from .parser ? I've get error ImportError: attempted relative import with no known parent package | ||
from secscanner2junit.config import Config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@angrymeir is it corrent import?
@angrymeir :) |
No description provided.