Skip to content

Commit bed3a32

Browse files
committed
fix: Updated test case and github action
1 parent 762565c commit bed3a32

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
strategy:
99
matrix:
1010
os: [ubuntu-latest, macos-latest, windows-latest]
11-
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12]
11+
python-version: [3.7, 3.8, 3.9, 3.10, 3.11, 3.12]
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414
- name: Set up Python ${{ matrix.python-version }}
15-
uses: actions/setup-python@v2
15+
uses: actions/setup-python@v5
1616
with:
1717
python-version: ${{ matrix.python-version }}
1818
- name: Install requirements
@@ -23,9 +23,9 @@ jobs:
2323
static-analysis:
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v4
2727
- name: Set up Python
28-
uses: actions/setup-python@v2
28+
uses: actions/setup-python@v5
2929
with:
3030
python-version: 3.12
3131
- name: Install tools

tests/transformation_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ def test_zip(transform):
242242

243243

244244
def test_fallback(transform):
245-
target_url = '{}/{}/fallback=cache:12,handle:fallbackHandle/{}'.format(config.CDN_URL, APIKEY, EXTERNAL_URL)
246-
result = transform.fallback(handle='fallbackHandle', cache=12)
245+
target_url = '{}/{}/fallback=cache:12,file:{}/{}'.format(config.CDN_URL, APIKEY, EXTERNAL_URL, EXTERNAL_URL)
246+
result = transform.fallback(file=EXTERNAL_URL, cache=12)
247247
assert result.url == target_url
248248

249249

0 commit comments

Comments
 (0)