Skip to content

Commit

Permalink
fix: Updated test case and github action
Browse files Browse the repository at this point in the history
  • Loading branch information
sethk4783 committed Sep 16, 2024
1 parent 762565c commit bed3a32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12]
python-version: [3.7, 3.8, 3.9, 3.10, 3.11, 3.12]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install requirements
Expand All @@ -23,9 +23,9 @@ jobs:
static-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install tools
Expand Down
4 changes: 2 additions & 2 deletions tests/transformation_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ def test_zip(transform):


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


Expand Down

0 comments on commit bed3a32

Please sign in to comment.