gravity-schema 0.4.2__tar.gz → 0.4.4__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.
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/PKG-INFO +1 -1
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/pyproject.toml +1 -1
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/tests/test_manifest.py +9 -0
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/.gitignore +0 -0
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/LICENSE +0 -0
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/NOTICE +0 -0
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/README.md +0 -0
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/gravity_schema/__init__.py +0 -0
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/gravity_schema/__main__.py +0 -0
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/gravity_schema/catalog.py +0 -0
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/gravity_schema/catalog.yaml +0 -0
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/gravity_schema/catalog_imported.yaml +0 -0
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/gravity_schema/contract.py +0 -0
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/gravity_schema/cron.py +0 -0
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/gravity_schema/errors.py +0 -0
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/gravity_schema/export.py +0 -0
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/gravity_schema/gen_catalog.py +0 -0
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/gravity_schema/manifest.py +0 -0
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/gravity_schema/validation.py +0 -0
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/schema/manifest.schema.json +0 -0
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/tests/conftest.py +0 -0
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/tests/test_catalog_parity.py +0 -0
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/tests/test_cron.py +0 -0
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/tests/test_errors.py +0 -0
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/tests/test_json_schema.py +0 -0
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/tests/test_kind_outputs.py +0 -0
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/tests/test_slots.py +0 -0
- {gravity_schema-0.4.2 → gravity_schema-0.4.4}/tests/test_validation.py +0 -0
|
@@ -624,3 +624,12 @@ def test_state_size_outside_bounds_rejected(manifest_data, bad):
|
|
|
624
624
|
def test_runtime_python_defaults_to_313(manifest_data):
|
|
625
625
|
del manifest_data["runtime"]["python"]
|
|
626
626
|
assert validate_manifest(manifest_data).runtime.python == "3.12"
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
def test_a_secret_input_cannot_have_a_default(manifest_data):
|
|
630
|
+
manifest_data["inputs"] = [{"name": "api_key", "type": "secret", "label": "Key", "default": "sk-x"}]
|
|
631
|
+
with pytest.raises(ManifestValidationError) as e:
|
|
632
|
+
validate_manifest(manifest_data)
|
|
633
|
+
assert "cannot have a default" in str(e.value)
|
|
634
|
+
del manifest_data["inputs"][0]["default"]
|
|
635
|
+
assert validate_manifest(manifest_data).inputs[0].type.value == "secret"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|