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

test: move tests from dsp-tools repo to here (DEV-3173) #3

Merged
merged 4 commits into from
Jan 12, 2024

Conversation

jnussbaum
Copy link
Collaborator

No description provided.

Copy link

linear bot commented Jan 12, 2024

@jnussbaum jnussbaum self-assigned this Jan 12, 2024
Comment on lines +25 to +29
with open("test/expected.xml", encoding="utf-8") as f:
xml_expected = _derandomize_xsd_id(f.read(), multiple_occurrences=True)
with open(generated_xml_file, encoding="utf-8") as f:
xml_returned = _derandomize_xsd_id(f.read(), multiple_occurrences=True)
assert _sort_xml_by_id(xml_expected) == _sort_xml_by_id(xml_returned)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not particularly a fan of this kind of testing against serializations. In this context it's ok, but I would generally rather try to test for contents than for serializations

@jnussbaum jnussbaum merged commit e807e08 into main Jan 12, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants