-
Notifications
You must be signed in to change notification settings - Fork 122
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
Add classification extension #1093
Add classification extension #1093
Conversation
c3aa8c6
to
ad2d49e
Compare
In case it's helpful I have some pytest-style extension tests in #1088 |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1093 +/- ##
==========================================
+ Coverage 90.52% 90.91% +0.39%
==========================================
Files 48 49 +1
Lines 6355 6606 +251
Branches 944 970 +26
==========================================
+ Hits 5753 6006 +253
+ Misses 426 421 -5
- Partials 176 179 +3
☔ View full report in Codecov by Sentry. |
@jsignell I modeled my tests after the EO extension tests, are we saying that the pytest style is now preferred? |
Yeah the plan is to move all the tests to pytest eventually #993 |
84c0360
to
1cf260b
Compare
@gadomski You can flick your eyes over this. Tests need to get revamped, but the interface seems fine now. |
dd661f5
to
7f68a67
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test to ensure we can open an object that has the older classification version, ala https://github.com/stac-utils/pystac/pull/1131/files#diff-89b2d9c743703076080598ace41425b7270c1c0dc767f431ff7cab1c2b396b70R428-R443
5b2216d
to
c3ef53d
Compare
c3ef53d
to
84a1a3d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gadomski All of the examples in |
84a1a3d
to
255a077
Compare
Ah gotcha. Yeah, whatever version the test files are in, I'd like to make an explicit test that the other version works too (aka you can access the extension object and its properties). Thanks. |
Are you proposing that each test be run twice for each version of the extension? Given how these extensions work, it feels like it should be enough to simply show that the different versions can be read by the extension, since all the functionality is otherwise identical. The code coverage report is showing that nearly all of the code pathways are exercised by the tests provided, and because in this case the 1.1.0 version is a superset of the 1.0.0 version, it feels like the work done here should be sound. Let me know if that's incorrect. |
No, just a single test to ensure that we can read the version not in the fixtures, e.g. https://github.com/stac-utils/pystac/pull/1131/files#diff-89b2d9c743703076080598ace41425b7270c1c0dc767f431ff7cab1c2b396b70R428-R443 |
Need one more test to ensure we can handle both versions
255a077
to
7097b59
Compare
b07864b
to
9e7a1a7
Compare
Related Issue(s):
Closes #788
Description:
This PR adds the Classification Extension to pystac.
PR Checklist:
pre-commit
hooks pass locallyscripts/test
)