@@ -41,7 +41,7 @@ def test_verify_key_v0_3_1(self, base_path: pathlib.Path):
41
41
public_key = public_key
42
42
).set_hashing_config (
43
43
model_signing .hashing .Config ().set_ignored_paths (
44
- paths = list (ignore_paths ) + [signature ],
44
+ paths = list (ignore_paths ) + [signature . name ],
45
45
ignore_git_paths = ignore_git_paths ,
46
46
)
47
47
).verify (model_path , signature )
@@ -61,7 +61,7 @@ def test_verify_certificate_v0_3_1(self, base_path: pathlib.Path):
61
61
log_fingerprints = log_fingerprints ,
62
62
).set_hashing_config (
63
63
model_signing .hashing .Config ().set_ignored_paths (
64
- paths = list (ignore_paths ) + [signature ],
64
+ paths = list (ignore_paths ) + [signature . name ],
65
65
ignore_git_paths = ignore_git_paths ,
66
66
)
67
67
).verify (model_path , signature )
@@ -83,7 +83,7 @@ def test_verify_sigstore_v0_3_1(self, base_path: pathlib.Path):
83
83
use_staging = use_staging ,
84
84
).set_hashing_config (
85
85
model_signing .hashing .Config ().set_ignored_paths (
86
- paths = list (ignore_paths ) + [signature ],
86
+ paths = list (ignore_paths ) + [signature . name ],
87
87
ignore_git_paths = ignore_git_paths ,
88
88
)
89
89
).verify (model_path , signature )
@@ -101,7 +101,7 @@ def test_verify_key_v1_0_0(self, base_path: pathlib.Path):
101
101
public_key = public_key
102
102
).set_hashing_config (
103
103
model_signing .hashing .Config ().set_ignored_paths (
104
- paths = list (ignore_paths ) + [signature ],
104
+ paths = list (ignore_paths ) + [signature . name ],
105
105
ignore_git_paths = ignore_git_paths ,
106
106
)
107
107
).verify (model_path , signature )
@@ -121,7 +121,7 @@ def test_verify_certificate_v1_0_0(self, base_path: pathlib.Path):
121
121
log_fingerprints = log_fingerprints ,
122
122
).set_hashing_config (
123
123
model_signing .hashing .Config ().set_ignored_paths (
124
- paths = list (ignore_paths ) + [signature ],
124
+ paths = list (ignore_paths ) + [signature . name ],
125
125
ignore_git_paths = ignore_git_paths ,
126
126
)
127
127
).verify (model_path , signature )
@@ -143,7 +143,7 @@ def test_verify_sigstore_v1_0_0(self, base_path: pathlib.Path):
143
143
use_staging = use_staging ,
144
144
).set_hashing_config (
145
145
model_signing .hashing .Config ().set_ignored_paths (
146
- paths = list (ignore_paths ) + [signature ],
146
+ paths = list (ignore_paths ) + [signature . name ],
147
147
ignore_git_paths = ignore_git_paths ,
148
148
)
149
149
).verify (model_path , signature )
0 commit comments