initial import for Open Source 🎉
This commit is contained in:
parent
1898c361f3
commit
9c0dd3b722
2048 changed files with 218743 additions and 0 deletions
11
endpoints/appr/test/test_digest_prefix.py
Normal file
11
endpoints/appr/test/test_digest_prefix.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import pytest
|
||||
from endpoints.appr.models_cnr import _strip_sha256_header
|
||||
|
||||
|
||||
@pytest.mark.parametrize('digest,expected', [
|
||||
('sha256:251b6897608fb18b8a91ac9abac686e2e95245d5a041f2d1e78fe7a815e6480a',
|
||||
'251b6897608fb18b8a91ac9abac686e2e95245d5a041f2d1e78fe7a815e6480a'),
|
||||
('251b6897608fb18b8a91ac9abac686e2e95245d5a041f2d1e78fe7a815e6480a',
|
||||
'251b6897608fb18b8a91ac9abac686e2e95245d5a041f2d1e78fe7a815e6480a'),])
|
||||
def test_stip_sha256(digest, expected):
|
||||
assert _strip_sha256_header(digest) == expected
|
||||
Reference in a new issue