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 test check for tag in fits schema #1749

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

braingram
Copy link
Contributor

@braingram braingram commented Feb 8, 2024

Description

Update test_schema_resolved_via_entry_points to not check for a tag entry in the fits schema. The tag is not required and this test is preventing it's removal in:

asdf-format/asdf-standard#421

Checklist:

  • pre-commit checks ran successfully
  • tests ran successfully
  • for a public change, a changelog entry was added
  • for a public change, documentation was updated
  • for any new features, unit tests were added

@@ -837,7 +837,7 @@ def test_schema_resolved_via_entry_points():
schema_uris = extension_manager.get_tag_definition(tag).schema_uris
assert len(schema_uris) > 0
s = schema.load_schema(schema_uris[0], resolve_references=True)
assert tag in repr(s)
assert schema_uris[0] in repr(s)
Copy link
Contributor

Choose a reason for hiding this comment

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

I might be confused, but shouldn't the URI be present in the id field?

assert s["id"] == schema_uris[0]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're spot on and your checking the id is an improvement to the test. I updated the test to use your suggestion.

@braingram braingram merged commit b1a0dca into asdf-format:main Feb 20, 2024
34 checks passed
@braingram braingram deleted the no_fits_tag branch February 20, 2024 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants