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

Remove binary files from test files for compliance tool #143

Merged

Conversation

zrgt
Copy link
Contributor

@zrgt zrgt commented Oct 19, 2023

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 a 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 folder when initializing a ComplianceToolAASXTest.
@s-heppner
Copy link
Contributor

Thank you for the initiative!
Could you please "pretty-print" those test files, so that they have line breaks?
Otherwise we didn't win much for version controlling 😅

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.
@zrgt
Copy link
Contributor Author

zrgt commented Oct 19, 2023

Thank you for the initiative! Could you please "pretty-print" those test files, so that they have line breaks? Otherwise we didn't win much for version controlling 😅

@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.

@s-heppner
Copy link
Contributor

Alright, looks good to me. Tell me if it is ready to be merged

@zrgt
Copy link
Contributor Author

zrgt commented Oct 20, 2023

@s-heppner it is ready

@s-heppner s-heppner merged commit 9d01620 into eclipse-basyx:improve/V30 Oct 20, 2023
6 checks passed
@s-heppner s-heppner deleted the compliance_tool_test_files branch October 20, 2023 17:14
@s-heppner s-heppner added the v3.0 label Nov 21, 2023
Frosty2500 pushed a commit to rwth-iat/basyx-python-sdk that referenced this pull request Aug 22, 2024
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants