Skip to content

Commit

Permalink
chore(tests): fix template name check (#3626)
Browse files Browse the repository at this point in the history
  • Loading branch information
olevski authored Sep 28, 2023
1 parent bbd8fe0 commit 74ccfb7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/actions/install-linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ runs:
renku/templates
key: ${{ env.DEPENDENCY_CACHE_PREFIX }}-${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('poetry.lock') }}-${{ hashFiles('Makefile') }}
env:
DEPENDENCY_CACHE_PREFIX: "v1"
DEPENDENCY_CACHE_PREFIX: "20230929"
- name: Install dependencies
if: steps.dependency-cache.outputs.cache-hit != 'true' || 'refs/heads/master' == github.ref || 'refs/heads/develop' == github.ref || startsWith(github.ref, 'refs/tags/')
env:
Expand Down Expand Up @@ -65,7 +65,7 @@ runs:
path: cassettes
key: ${{ env.NETWORK_CACHE_PREFIX }}-${{ steps.year-week.outputs.date }}-${{ hashFiles('poetry.lock') }}-${{ github.job }}
env:
NETWORK_CACHE_PREFIX: "v1"
NETWORK_CACHE_PREFIX: "20230929"
- name: Set coveralls path mapping
shell: bash
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/install-macos/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ runs:
path: cassettes
key: ${{ env.NETWORK_CACHE_PREFIX }}-${{ steps.year-week.outputs.date }}-${{ hashFiles('poetry.lock') }}-${{ github.job }}
env:
NETWORK_CACHE_PREFIX: "v1"
NETWORK_CACHE_PREFIX: "20230929"
4 changes: 2 additions & 2 deletions tests/cli/test_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def test_template_show(isolated_runner):
result = isolated_runner.invoke(cli, command + ["R-minimal"])

assert 0 == result.exit_code, format_result_exception(result)
assert re.search("^Name: Basic R (.*) Project$", result.output, re.MULTILINE) is not None
assert re.search("^Name: R (.*) Project$", result.output, re.MULTILINE) is not None
finally:
sys.argv = argv

Expand All @@ -101,7 +101,7 @@ def test_template_show_no_id(runner, project):
result = runner.invoke(cli, ["template", "show"])

assert 0 == result.exit_code, format_result_exception(result)
assert re.search("^Name: Basic Python (.*) Project$", result.output, re.MULTILINE) is not None
assert re.search("^Name: Python (.*) Project$", result.output, re.MULTILINE) is not None


def test_template_show_no_id_outside_project(isolated_runner):
Expand Down

0 comments on commit 74ccfb7

Please sign in to comment.