-
Notifications
You must be signed in to change notification settings - Fork 92
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 cases for OGC Test Suit #391
base: 317-add-tests-for-the-ogc-kml-22-conformance-test-suite
Are you sure you want to change the base?
Test cases for OGC Test Suit #391
Conversation
Changed Files
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Hello @apurvabanka! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2024-11-24 13:17:44 UTC |
Reviewer's Guide by SourceryThis PR adds test cases for OGC (Open Geospatial Consortium) KML compliance testing. The implementation includes various test cases that validate KML document parsing, serialization, and schema validation using the fastkml library. The tests compare parsed and serialized KML documents with expected XML outputs using xmldiff for comparison. No diagrams generated as the changes look simple and do not need a visual representation. File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Preparing review... |
1 similar comment
Preparing review... |
Copilot
AI
left a comment
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.
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 suggestions.
assert fastkml.validator.validate(file_to_validate=clean_doc) | ||
assert fastkml.validator.validate(element=doc.etree_element()) | ||
|
||
def test_docunemt_empty_placemark_without_id(self) -> None: |
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.
The method name 'test_docunemt_empty_placemark_without_id' contains a typo. It should be 'test_document_empty_placemark_without_id'.
def test_docunemt_empty_placemark_without_id(self) -> None: | |
def test_document_empty_placemark_without_id(self) -> None: |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
expected_xml, | ||
) | ||
|
||
# assert diff is None |
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.
The commented-out assertion should either be removed or uncommented and corrected to 'assert diff == []' to be consistent with other tests.
# assert diff is None | |
assert diff == [] |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
|
||
# assert diff is None | ||
assert fastkml.validator.validate(file_to_validate=linearring_1d_tuples) | ||
# assert fastkml.validate.validate(element=doc.etree_element()) |
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.
The commented-out assertion should either be removed or uncommented and corrected to 'assert fastkml.validator.validate(element=doc.etree_element())'.
# assert fastkml.validate.validate(element=doc.etree_element()) | |
assert fastkml.validator.validate(element=doc.etree_element()) |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
…' into ogc_test_suit
…' into ogc_test_suit
Summary by Sourcery
Introduce test cases for OGC KML conformance and update test dependencies.
Build:
Tests: