Skip to content

993 progress: convert two more files to pytest, only three remaining #1534

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

Merged
merged 28 commits into from
Mar 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
1020e37
993 whoops forgot to take out dev notes
teks Mar 1, 2025
4c89450
993 start on test_sat.py conversion to pytest
teks Mar 1, 2025
7ad4c51
993 convert test_sat.py's assertions to pytest
teks Mar 1, 2025
e1fb205
993 move sat_test.py cassettes to new pytest names
teks Mar 1, 2025
61134c1
993 set up fixtures & demo with a few tests
teks Mar 1, 2025
7168147
993 nonfunctional declassing
teks Mar 1, 2025
8379ac4
993 rewrite to use `item` fixture instead of `self.item` from setUp
teks Mar 1, 2025
2226e2a
993 rewrite tests to use new sentinel_item fixture
teks Mar 1, 2025
632bf60
993 SatTest stragglers; conversion finished
teks Mar 1, 2025
38cde8c
993 start conversion of SatSummariesTest
teks Mar 1, 2025
805887f
993 declass last of test_sat.py
teks Mar 1, 2025
507a5df
993 finish converting SatSummariesTest
teks Mar 1, 2025
a5a2a38
993 pre-commit faff
teks Mar 1, 2025
cce099c
993 start on test_scientific.py: convert assertions & a few tests
teks Mar 1, 2025
315bad3
993 rename cassettes for pytest conversion
teks Mar 1, 2025
4f7359e
993 make a fixture & test it
teks Mar 1, 2025
5c67c6d
993 finish converting ItemScientificExtensionTest
teks Mar 1, 2025
aed3ca6
993 refactor
teks Mar 3, 2025
b1e99f4
993 start converting CollectionScientificExtensionTest
teks Mar 3, 2025
1c8bad2
993 declass CollectionScientificExtensionTest (nonfunctional)
teks Mar 3, 2025
5d5e2ba
993 dedupe test names
teks Mar 3, 2025
75aebdc
993 convert two outlier tests
teks Mar 3, 2025
8b93ad7
993 start using new fixture
teks Mar 3, 2025
a10a411
993 rename cassettes
teks Mar 3, 2025
6447cbe
993 missed a few straggler assertions
teks Mar 3, 2025
3c44261
993 refactor to prep for last declassing
teks Mar 3, 2025
9cc9fb2
993 declass once more
teks Mar 3, 2025
277a36f
993 ruff really made the code better by alphabetizing the imports
teks Mar 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/extensions/test_raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ def ext_item() -> pystac.Item:
return pystac.Item.from_file(PLANET_EXAMPLE_URI)


# 2 usages
SENTINEL2_EXAMPLE_URI = TestCases.get_path(
"data-files/raster/raster-sentinel2-example.json"
)
# 2 usages


LANDSAT_COLLECTION_EXAMPLE_URI = TestCases.get_path(
"data-files/raster/landsat-collection-example.json"
)
Expand Down
Loading