Closed
Description
Currently, tags are being tested as a side effect of Resources
. Given the issues we've already uncovered, we need to create specific tests for tagging and tag formatting that are pulled out into their own tag test files. We also need test data for these tests.
Not an exhaustive list, but here are some use cases we need to test for:
- Non-English extended ASCII characters as part of tags (see bug [API] Non-English (unicode, extended ASCII, emoji) Characters Cannot Be Slug-ified in Tags #71 )
- Unicode characters as part of tags
- "Special" characters (slashes, semicolons, anything that might read as code) as part of tags
- Nested JSON in tags
- Nested lists in tags
- Malformed or otherwise weirdly formatted tags
- Duplicate tags (to test de-duping)
- Various capitalization scenarios
- Adding tags to an existing set
- Removing tags from an existing set