add unit tests for Tag class
Added unit tests just for the Tag class. Tests the following: add_subtag remove_subtag remove_subtag if id is not in subtag_ids debug_name display_name with shorthand display_name without shorthand display_name with no subtag_ids
Also added tests for edge cases with display name when tags don't have names but I commented those out for now since we probably don't want to display them in that format. ex result for tag & subtag having no name " ()"
Added pytest-mock to requirements-dev.txt I'm not sure what version to add, I tested on both v3.0.0 & v3.14.0
I have not been following the path.os changes so the header in test_tags.py might need to be changed
Thanks for the PR. Ideally please add a CI job which will run the tests. Otherwise having tests no one runs is like having no tests at all.
I've added runtest.yaml This is the first time I've worked with github actions but I think it's working as intended.
The interface of Tag has changed significantly, and there are some tests covering most of the Tag scenarios, so I will close this, sorry.