File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11import base64
22import json
33import os
4+ import re
45import tempfile
56from pathlib import Path
67
@@ -618,7 +619,7 @@ def test_client_create_from_library(httpserver: HTTPServer):
618619
619620
620621def test_client_create_blob (httpserver : HTTPServer ):
621- httpserver .expect_ordered_request (PrefixPattern ( ' /api/blobs/' ), method = 'POST' ).respond_with_response (Response (status = 201 ))
622+ httpserver .expect_ordered_request (re . compile ( '^ /api/blobs/sha256[:-][0-9a-fA-F]{64}$ ' ), method = 'POST' ).respond_with_response (Response (status = 201 ))
622623
623624 client = Client (httpserver .url_for ('/' ))
624625
@@ -1009,7 +1010,7 @@ async def test_async_client_create_from_library(httpserver: HTTPServer):
10091010
10101011@pytest .mark .asyncio
10111012async def test_async_client_create_blob (httpserver : HTTPServer ):
1012- httpserver .expect_ordered_request (PrefixPattern ( ' /api/blobs/' ), method = 'POST' ).respond_with_response (Response (status = 201 ))
1013+ httpserver .expect_ordered_request (re . compile ( '^ /api/blobs/sha256[:-][0-9a-fA-F]{64}$ ' ), method = 'POST' ).respond_with_response (Response (status = 201 ))
10131014
10141015 client = AsyncClient (httpserver .url_for ('/' ))
10151016
You can’t perform that action at this time.
0 commit comments