Skip to content

Commit 034fd70

Browse files
authored
Update CUENCA_FILE_URL regex pattern for API endpoints (#397)
1 parent d3d01ce commit 034fd70

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

cuenca_validations/types/requests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@
9292
)
9393

9494
CUENCA_FILE_URL = (
95-
r'^https:\/\/(?:stage|sandbox|api)\.cuenca\.com\/files\/([a-zA-Z0-9\-_]+)$'
95+
r'^https:\/\/(?:api\.stage|api\.sandbox|api)\.cuenca\.com'
96+
r'\/files\/([a-zA-Z0-9\-_]+)$'
9697
)
9798

9899
DOCS_WITH_BACK = [

cuenca_validations/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.1.24'
1+
__version__ = '2.1.25'

tests/test_requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from cuenca_validations.typing import DictStrAny
99

1010

11-
@pytest.mark.parametrize('environment', ['stage', 'sandbox', 'api'])
11+
@pytest.mark.parametrize('environment', ['api.stage', 'api.sandbox', 'api'])
1212
def test_file_cuenca_url(environment: str) -> None:
1313
request_data: DictStrAny = dict(
1414
tos_id='TS67dcae8e74e81bba5a77bf47',

0 commit comments

Comments
 (0)