-
Notifications
You must be signed in to change notification settings - Fork 28
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
Remove binary files from test files for compliance tool #143
Remove binary files from test files for compliance tool #143
Conversation
As binary files are not appropriate for git, we decided instead to create folders with the exact structure like in .aasx files and zip these folder when initializing a ComplianceToolAASXTest.
Thank you for the initiative! |
Instead init() use setUpClass() to generate AASX files with zipped dirs and delete these AASX files after tests are finished.
It will be generated in ComplianceToolAASXTest.setUpClass()
As other tests also need AASX files, we cannot remove AASX files after all Tests in ComplianceToolAASXTest are run. That is why tearDownClass() was removed
As other tests also need AASX files, we cannot generate AASX files in ComplianceToolAASXTest, because other tests can be run before or without tests from ComplianceToolAASXTest.
@s-heppner the data files in test files have actually line breaks. Only meta files in those test files dont have line breaks, unfortunately I cannot pretty-print them, because otherwise the equality checking in tests doesnt work. |
Alright, looks good to me. Tell me if it is ready to be merged |
@s-heppner it is ready |
…x#143) * Remove binary files from test files As binary files are not appropriate for git, we decided instead to create folders with the exact structure like in .aasx files and zip these folder when initializing a ComplianceToolAASXTest. * Add setUpClass() and tearDownClass(). Instead init() use setUpClass() to generate AASX files with zipped dirs and delete these AASX files after tests are finished. * Remove test_empty.aasx binary It will be generated in ComplianceToolAASXTest.setUpClass() * Remove ComplianceToolAASXTest.tearDownClass() As other tests also need AASX files, we cannot remove AASX files after all Tests in ComplianceToolAASXTest are run. That is why tearDownClass() was removed * Move generation of AASX files to __init__.py As other tests also need AASX files, we cannot generate AASX files in ComplianceToolAASXTest, because other tests can be run before or without tests from ComplianceToolAASXTest.
As binary files are not appropriate for git, we decided instead to create folders with the exact structure like in
.aasx
files and zip these folders when initializing aComplianceToolAASXTest
.