Skip to content

993 progress: two more files converted to pytest, one remaining#1535

Merged
gadomski merged 23 commits intostac-utils:mainfrom
teks:993-convert-to-pytest-10
Mar 5, 2025
Merged

993 progress: two more files converted to pytest, one remaining#1535
gadomski merged 23 commits intostac-utils:mainfrom
teks:993-convert-to-pytest-10

Conversation

@teks
Copy link
Contributor

@teks teks commented Mar 5, 2025

Related Issue(s): #993

Description: Converted tests/extensions/test_storage.py and tests/extensions/test_timestamps.py, only tests/extensions/test_view.py remains.

PR Checklist:

  • Pre-commit hooks pass (run pre-commit run --all-files)
  • Tests pass (run pytest)
  • Documentation has been updated to reflect changes, if applicable
  • This PR maintains or improves overall codebase code coverage.
  • Changes are added to the CHANGELOG. See the docs for information about adding to the changelog.

@codecov
Copy link

codecov bot commented Mar 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.49%. Comparing base (2960662) to head (0f0c376).
Report is 11 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1535   +/-   ##
=======================================
  Coverage   91.49%   91.49%           
=======================================
  Files          54       54           
  Lines        7571     7571           
  Branches      922      922           
=======================================
  Hits         6927     6927           
  Misses        457      457           
  Partials      187      187           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.


@pytest.fixture
def multi_extent_collection() -> Collection:
# TODO this code is repeated many times; refactor to use this fixture
Copy link
Member

Choose a reason for hiding this comment

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

❤️

@gadomski gadomski added this pull request to the merge queue Mar 5, 2025
Merged via the queue into stac-utils:main with commit 89cac1d Mar 5, 2025
19 checks passed
kmodali pushed a commit to kmodali/pystac that referenced this pull request Oct 16, 2025
…-utils#1535)

* 993 pull out constants to module scope

* 993 convert assertions in test_storage.py

* 993 convert a test

* 993 convert a test using conftest fixture

* 993 convert test_validate_storage to pytest

* 993 easy test conversion

* 993 convert remainder of tests in ItemStorageExtensionTest

* 993 refactor test classes as a prelude to declassing

* 993 convert a test from StorageExtensionSummariesTest

* 993 rename for clarity post-declass

* 993 declass StorageExtensionSummariesTest tests

* 993 finish declassing

* 993 declass AssetStorageExtensionTest

* 993 finish declassing

* 993 better names for asset tests

* 993 start on test_timestamps.py

* 993 replace assertions

* 993 relocate cassettes prior to declassing

* 993 set up for test conversion

* 993 yet another nonfunctional declassing

* 993 convert tests to pytest

* 993 convert TimestampsSummariesTest

* 993 ruff's opinions
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.

2 participants