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

Support for the STAC package through an extension #374

Merged
merged 12 commits into from
Mar 1, 2025
Prev Previous commit
Next Next commit
test: STAC test in the right place
  • Loading branch information
tpoisot committed Feb 28, 2025
commit 5f72c39f4fbad33184f8be9adb65cb5cd01cb148
9 changes: 0 additions & 9 deletions SDeMo/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@ using TestItemRunner

@run_package_tests filter=ti->!(:skipci in ti.tags)

@testitem "We can get data from a STAC catalogue" begin
using STAC
biab = STAC.Catalog("https://stac.geobon.org/")
ghmts = biab["ghmts"].items["GHMTS"].assets["GHMTS"]
L = SDMLayer(ghmts; left=12.5, right=23.75, bottom=45.5, top=51.0)
#SDMLayer(f)

end

# write tests here

## NOTE add JET to the test environment, then uncomment
Expand Down
10 changes: 8 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ end
@test isa(W.direction, SDMLayer)
end



@testitem "We can womble with a vector of layers" begin
using SpatialBoundaries
L = [SDMLayer(
Expand All @@ -45,4 +43,12 @@ end
W = wombling(L)
@test isa(W.rate, SDMLayer)
@test isa(W.direction, SDMLayer)
end

@testitem "We can get data from a STAC catalogue" begin
using STAC
biab = STAC.Catalog("https://stac.geobon.org/")
ghmts = biab["ghmts"].items["GHMTS"].assets["GHMTS"]
L = SDMLayer(ghmts; left=12.5, right=23.75, bottom=45.5, top=51.0)
@test L isa SDMLayer
end