-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename ConformanceClasses to Conformance
- Loading branch information
1 parent
c03272e
commit d74877b
Showing
5 changed files
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
# flake8: noqa: F401 | ||
from .collection import Collection | ||
from .collections import Collections | ||
from .conformance import ConformanceClasses | ||
from .conformance import Conformance | ||
from .item import Item | ||
from .item_collection import ItemCollection | ||
from .landing import LandingPage | ||
from .search import Search | ||
|
||
# For compatibility | ||
ConformanceClasses = Conformance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import pytest | ||
from pydantic import ValidationError | ||
|
||
from stac_pydantic.api.conformance import ConformanceClasses | ||
from stac_pydantic.api.conformance import Conformance | ||
|
||
|
||
def test_api_conformance(): | ||
ConformanceClasses( | ||
Conformance( | ||
conformsTo=["https://conformance-class-1", "http://conformance-class-2"] | ||
) | ||
|
||
|
||
def test_api_conformance_invalid_url(): | ||
with pytest.raises(ValidationError): | ||
ConformanceClasses(conformsTo=["s3://conformance-class"]) | ||
Conformance(conformsTo=["s3://conformance-class"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters