-
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
Reorganize unittests #14
Comments
It improved but we have a lot of duplication between text-mode codes => refactor |
adrianschlatter
added a commit
that referenced
this issue
Sep 15, 2023
The test cases for codecs are almost identically repeated 5 times => created a base class for these test cases which is inherited for each codec. Had to add full-alphabet test against datamatrix-svg for ascii (as this was currently missing). Also changed full-alphabet tests of TEXT and X12: So far, we tested a reduced alphabet against datamatrix-svg because datamatrix-svg has issues with some characters. Switched this to testing full alphabet but with ground truth added "manually". Modified flake8 exceptions in setup.cfg (import of ppf.datamatrix appears unused but actually *is* used via codecs). work on issue #14
adrianschlatter
added a commit
that referenced
this issue
Sep 15, 2023
Created a generator function to create test messages (instead of repeating the same code 3 times). work on issue #14
adrianschlatter
added a commit
that referenced
this issue
Sep 15, 2023
I see no reason why test_consistency.py that tests at the datamatrix level should not just be part of test_datamatrix.py work on issue #14
adrianschlatter
added a commit
that referenced
this issue
Sep 15, 2023
Migrated "smoke" tests and dropped some of them (without reducing test coverage). work on issue #14
adrianschlatter
added a commit
that referenced
this issue
Sep 15, 2023
run unittest.main() if called as __main__ closes issue #14
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Structure is rather unsystematic currently.
The text was updated successfully, but these errors were encountered: