Skip to content

Commit 74ccfb7

Browse files
authored
chore(tests): fix template name check (#3626)
1 parent bbd8fe0 commit 74ccfb7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/actions/install-linux/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ runs:
3232
renku/templates
3333
key: ${{ env.DEPENDENCY_CACHE_PREFIX }}-${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('poetry.lock') }}-${{ hashFiles('Makefile') }}
3434
env:
35-
DEPENDENCY_CACHE_PREFIX: "v1"
35+
DEPENDENCY_CACHE_PREFIX: "20230929"
3636
- name: Install dependencies
3737
if: steps.dependency-cache.outputs.cache-hit != 'true' || 'refs/heads/master' == github.ref || 'refs/heads/develop' == github.ref || startsWith(github.ref, 'refs/tags/')
3838
env:
@@ -65,7 +65,7 @@ runs:
6565
path: cassettes
6666
key: ${{ env.NETWORK_CACHE_PREFIX }}-${{ steps.year-week.outputs.date }}-${{ hashFiles('poetry.lock') }}-${{ github.job }}
6767
env:
68-
NETWORK_CACHE_PREFIX: "v1"
68+
NETWORK_CACHE_PREFIX: "20230929"
6969
- name: Set coveralls path mapping
7070
shell: bash
7171
run: |

.github/actions/install-macos/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ runs:
4646
path: cassettes
4747
key: ${{ env.NETWORK_CACHE_PREFIX }}-${{ steps.year-week.outputs.date }}-${{ hashFiles('poetry.lock') }}-${{ github.job }}
4848
env:
49-
NETWORK_CACHE_PREFIX: "v1"
49+
NETWORK_CACHE_PREFIX: "20230929"

tests/cli/test_template.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def test_template_show(isolated_runner):
9191
result = isolated_runner.invoke(cli, command + ["R-minimal"])
9292

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

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

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

106106

107107
def test_template_show_no_id_outside_project(isolated_runner):

0 commit comments

Comments
 (0)