@ -670,7 +670,7 @@ def test_get_collection_version_metadata_no_version(api_version, token_type, ver
assert actual . dependencies == { }
assert mock_open . call_count == 1
assert mock_open . mock_calls [ 0 ] [ 1 ] [ 0 ] == ' %s %s /collections/namespace/collection/versions/ %s ' \
assert mock_open . mock_calls [ 0 ] [ 1 ] [ 0 ] == ' %s %s /collections/namespace/collection/versions/ %s / ' \
% ( api . api_server , api_version , version )
# v2 calls dont need auth, so no authz header or token_type
@ -730,7 +730,7 @@ def test_get_collection_versions(api_version, token_type, token_ins, response, m
assert mock_open . call_count == 1
assert mock_open . mock_calls [ 0 ] [ 1 ] [ 0 ] == ' https://galaxy.server.com/api/ %s /collections/namespace/collection/ ' \
' versions ' % api_version
' versions / ' % api_version
if token_ins :
assert mock_open . mock_calls [ 0 ] [ 2 ] [ ' headers ' ] [ ' Authorization ' ] == ' %s my token ' % token_type
@ -854,7 +854,7 @@ def test_get_collection_versions_pagination(api_version, token_type, token_ins,
assert mock_open . call_count == 3
assert mock_open . mock_calls [ 0 ] [ 1 ] [ 0 ] == ' https://galaxy.server.com/api/ %s /collections/namespace/collection/ ' \
' versions ' % api_version
' versions / ' % api_version
assert mock_open . mock_calls [ 1 ] [ 1 ] [ 0 ] == ' https://galaxy.server.com/api/ %s /collections/namespace/collection/ ' \
' versions/?page=2 ' % api_version
assert mock_open . mock_calls [ 2 ] [ 1 ] [ 0 ] == ' https://galaxy.server.com/api/ %s /collections/namespace/collection/ ' \