stac-fastapi.api 5.1.0__tar.gz → 5.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. {stac_fastapi_api-5.1.0 → stac_fastapi_api-5.1.1}/PKG-INFO +1 -1
  2. {stac_fastapi_api-5.1.0 → stac_fastapi_api-5.1.1}/stac_fastapi/api/version.py +1 -1
  3. {stac_fastapi_api-5.1.0 → stac_fastapi_api-5.1.1}/stac_fastapi.api.egg-info/PKG-INFO +1 -1
  4. {stac_fastapi_api-5.1.0 → stac_fastapi_api-5.1.1}/tests/test_models.py +6 -0
  5. {stac_fastapi_api-5.1.0 → stac_fastapi_api-5.1.1}/README.md +0 -0
  6. {stac_fastapi_api-5.1.0 → stac_fastapi_api-5.1.1}/setup.cfg +0 -0
  7. {stac_fastapi_api-5.1.0 → stac_fastapi_api-5.1.1}/setup.py +0 -0
  8. {stac_fastapi_api-5.1.0 → stac_fastapi_api-5.1.1}/stac_fastapi/api/__init__.py +0 -0
  9. {stac_fastapi_api-5.1.0 → stac_fastapi_api-5.1.1}/stac_fastapi/api/app.py +0 -0
  10. {stac_fastapi_api-5.1.0 → stac_fastapi_api-5.1.1}/stac_fastapi/api/config.py +0 -0
  11. {stac_fastapi_api-5.1.0 → stac_fastapi_api-5.1.1}/stac_fastapi/api/errors.py +0 -0
  12. {stac_fastapi_api-5.1.0 → stac_fastapi_api-5.1.1}/stac_fastapi/api/middleware.py +0 -0
  13. {stac_fastapi_api-5.1.0 → stac_fastapi_api-5.1.1}/stac_fastapi/api/models.py +0 -0
  14. {stac_fastapi_api-5.1.0 → stac_fastapi_api-5.1.1}/stac_fastapi/api/openapi.py +0 -0
  15. {stac_fastapi_api-5.1.0 → stac_fastapi_api-5.1.1}/stac_fastapi/api/routes.py +0 -0
  16. {stac_fastapi_api-5.1.0 → stac_fastapi_api-5.1.1}/stac_fastapi.api.egg-info/SOURCES.txt +0 -0
  17. {stac_fastapi_api-5.1.0 → stac_fastapi_api-5.1.1}/stac_fastapi.api.egg-info/dependency_links.txt +0 -0
  18. {stac_fastapi_api-5.1.0 → stac_fastapi_api-5.1.1}/stac_fastapi.api.egg-info/not-zip-safe +0 -0
  19. {stac_fastapi_api-5.1.0 → stac_fastapi_api-5.1.1}/stac_fastapi.api.egg-info/requires.txt +0 -0
  20. {stac_fastapi_api-5.1.0 → stac_fastapi_api-5.1.1}/stac_fastapi.api.egg-info/top_level.txt +0 -0
  21. {stac_fastapi_api-5.1.0 → stac_fastapi_api-5.1.1}/tests/test_api.py +0 -0
  22. {stac_fastapi_api-5.1.0 → stac_fastapi_api-5.1.1}/tests/test_app.py +0 -0
  23. {stac_fastapi_api-5.1.0 → stac_fastapi_api-5.1.1}/tests/test_app_prefix.py +0 -0
  24. {stac_fastapi_api-5.1.0 → stac_fastapi_api-5.1.1}/tests/test_middleware.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: stac-fastapi.api
3
- Version: 5.1.0
3
+ Version: 5.1.1
4
4
  Summary: An implementation of STAC API based on the FastAPI framework.
5
5
  Home-page: https://github.com/stac-utils/stac-fastapi
6
6
  Author: Arturo Engineering
@@ -1,3 +1,3 @@
1
1
  """Library version."""
2
2
 
3
- __version__ = "5.1.0"
3
+ __version__ = "5.1.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: stac-fastapi.api
3
- Version: 5.1.0
3
+ Version: 5.1.1
4
4
  Summary: An implementation of STAC API based on the FastAPI framework.
5
5
  Home-page: https://github.com/stac-utils/stac-fastapi
6
6
  Author: Arturo Engineering
@@ -40,6 +40,12 @@ def test_create_get_request_model():
40
40
  assert d.microsecond == 10
41
41
  assert not model.end_date
42
42
 
43
+ model = request_model(bbox="0,0,0,1,1,1")
44
+ assert model.bbox == (0.0, 0.0, 0.0, 1.0, 1.0, 1.0)
45
+
46
+ with pytest.raises(AssertionError):
47
+ request_model(bbox="0,0,0,1,1")
48
+
43
49
  model = request_model(
44
50
  datetime="2020-01-01T00:00:00.00001Z/2020-01-02T00:00:00.00001Z",
45
51
  )