Add tests for manifest lists and fix some issues encountered while testing
This commit is contained in:
parent
9994f0ae61
commit
7a794e29c0
9 changed files with 311 additions and 98 deletions
|
@ -102,6 +102,11 @@ def v2_protocol(request, jwk):
|
|||
return request.param(jwk)
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def v22_protocol(request, jwk):
|
||||
return V2Protocol(jwk, schema2=True)
|
||||
|
||||
|
||||
@pytest.fixture(params=[V1Protocol])
|
||||
def v1_protocol(request, jwk):
|
||||
return request.param(jwk)
|
||||
|
@ -123,6 +128,15 @@ def pusher(request, data_model, jwk):
|
|||
return V2Protocol(jwk)
|
||||
|
||||
|
||||
|
||||
@pytest.fixture(params=['v1', 'v2_1'])
|
||||
def legacy_puller(request, data_model, jwk):
|
||||
if request.param == 'v1':
|
||||
return V1Protocol(jwk)
|
||||
|
||||
return V2Protocol(jwk)
|
||||
|
||||
|
||||
@pytest.fixture(params=['v1', 'v2_1'])
|
||||
def legacy_pusher(request, data_model, jwk):
|
||||
if request.param == 'v1':
|
||||
|
|
Reference in a new issue