Skip to content

Commit e86b47e

Browse files
committed
Workaround betterproto/pydantic issues
This seems to work for now.. See also sigstore/sigstore-python#1276 Signed-off-by: Jussi Kukkonen <[email protected]>
1 parent 0b09cd2 commit e86b47e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/test_bundle.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def test_sign_does_not_produce_root(
102102

103103
# Parse the output bundle.
104104
bundle_contents = materials.bundle.read_bytes()
105-
bundle = Bundle().from_json(bundle_contents)
105+
bundle = Bundle.from_dict(json.loads(bundle_contents))
106106

107107
# Iterate over our cert chain and check for roots.
108108
if bundle.verification_material.is_set("x509_certificate_chain"):
@@ -449,7 +449,6 @@ def temp_bundle_path(bundle: dict) -> Path:
449449
if not bundle:
450450
continue
451451
with subtests.test(artifact["url"]):
452-
453452
bundle_path = temp_bundle_path(bundle)
454453
sha256 = artifact["sha256"]
455454

0 commit comments

Comments
 (0)