From bed3a321f9d0050a6691dd1c1a16a7863584dc71 Mon Sep 17 00:00:00 2001 From: Seth K Date: Tue, 17 Sep 2024 02:31:27 +0530 Subject: [PATCH] fix: Updated test case and github action --- .github/workflows/tests.yml | 10 +++++----- tests/transformation_test.py | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1af8142..91fe060 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 @@ -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 diff --git a/tests/transformation_test.py b/tests/transformation_test.py index 142d08f..b531392 100644 --- a/tests/transformation_test.py +++ b/tests/transformation_test.py @@ -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