Skip to content

Commit

Permalink
Issue #3 update tests to d9189f5
Browse files Browse the repository at this point in the history
rel=udp was changed to rel-openeo-process
  • Loading branch information
soxofaan committed Dec 11, 2024
1 parent 2a307f8 commit 4cb2760
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class TestUdpLink:
def test_from_link_object_basic(self):
data = {
"rel": "udp",
"rel": "openeo-process",
"href": "https://esa-apex.test/udp/basic.json",
}
link = UdpLink.from_link_object(data)
Expand All @@ -25,7 +25,7 @@ def test_from_link_object_basic(self):

def test_from_link_object_with_title(self):
data = {
"rel": "udp",
"rel": "openeo-process",
"href": "https://esa-apex.test/udp/basic.json",
"title": "My basic UDP",
}
Expand All @@ -50,14 +50,14 @@ def test_from_link_object_wrong_rel(self):

def test_from_link_object_no_href(self):
data = {
"rel": "udp",
"rel": "openeo-process",
}
with pytest.raises(InvalidMetadataError, match="Missing 'href' attribute"):
_ = UdpLink.from_link_object(data)

def test_from_link_object_wrong_type(self):
data = {
"rel": "udp",
"rel": "openeo-process",
"href": "https://esa-apex.test/udp/basic.json",
"type": "application/xml",
}
Expand Down Expand Up @@ -128,7 +128,7 @@ def test_from_ogc_api_record_basic(self):
},
"links": [
{
"rel": "udp",
"rel": "openeo-process",
"type": "application/json",
"title": "Basic UDP",
"href": "https://esa-apex.test/udp/basic.json",
Expand Down

0 comments on commit 4cb2760

Please sign in to comment.