Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Generic Metadata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
umr-tetis
STAC
extensions
Generic Metadata
Commits
9d59939d
Commit
9d59939d
authored
1 year ago
by
Rémi
Browse files
Options
Downloads
Patches
Plain Diff
Apply to items or assets
parent
78000e2b
No related branches found
Branches containing commit
Tags
v0.0.18
Tags containing commit
No related merge requests found
Pipeline
#179952
passed with warnings
1 year ago
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
stacflow_stac_extension/__init__.py
+1
-1
1 addition, 1 deletion
stacflow_stac_extension/__init__.py
stacflow_stac_extension/testing.py
+14
-0
14 additions, 0 deletions
stacflow_stac_extension/testing.py
with
15 additions
and
1 deletion
stacflow_stac_extension/__init__.py
+
1
−
1
View file @
9d59939d
from
.core
import
create_extension_cls
__version__
=
"
0.0.17
"
\ No newline at end of file
__version__
=
"
0.0.18
"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
stacflow_stac_extension/testing.py
+
14
−
0
View file @
9d59939d
...
...
@@ -116,3 +116,17 @@ def basic_test(
test_item
()
if
asset_test
:
test_asset
()
def
is_schema_url_synced
(
cls
):
import
requests
local_schema
=
cls
.
get_schema
()
url
=
cls
.
get_schema_uri
()
remote_schema
=
requests
.
get
(
url
).
json
()
print
(
f
"
Local schema is :
\n
{
local_schema
}
\n
Remote schema is:
\n
{
remote_schema
}
"
)
if
local_schema
!=
remote_schema
:
raise
ValueError
(
f
"
Please update the schema located in
{
url
}
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment