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

Move unit tests to the unit tests directory #152

Merged
merged 2 commits into from
Apr 11, 2023

Conversation

Honny1
Copy link
Member

@Honny1 Honny1 commented Apr 6, 2023

This PR moves unit tests to the unit test directory.


def get_fake_args():
# pylint: disable=bad-option-value,R1732
input_file = open(PATH_TO_ARF, "r", encoding="utf-8")

Check warning

Code scanning / CodeQL

File is not always closed

File is opened but is not closed.
def get_fake_args():
# pylint: disable=bad-option-value,R1732
input_file = open(PATH_TO_ARF, "r", encoding="utf-8")
output_file = open(PATH_TO_RESULT_FILE, "wb")

Check warning

Code scanning / CodeQL

File is not always closed

File is opened but is not closed.
@Honny1
Copy link
Member Author

Honny1 commented Apr 6, 2023

Warnings were rejected because it is used in tests.

@evgenyz evgenyz merged commit 8000ab3 into OpenSCAP:main Apr 11, 2023
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.

None yet

2 participants