Skip to content

Commit 7c03f57

Browse files
committed
chore: update tests for changes in function signatures
1 parent c1049a6 commit 7c03f57

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/test_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def mocked_github_repo(account_name, repo_name):
5656
return repo
5757

5858

59-
def mocked_github_release(account_name, repo_name, tag_name):
59+
def mocked_github_release(account_name, repo_name, tag_name, test_only=False):
6060
log(f'returing mocked GitHubRelease for {tag_name}')
6161
with open(path.join(repo_dir, 'release.json'), 'r') as f:
6262
return GitHubRelease(json5.loads(f.read()))
@@ -113,7 +113,7 @@ def test_environment_vars_from_options(capsys):
113113
'--invenio-token', 'itoken',
114114
'--github-token', 'gtoken',
115115
'--save-metadata', '/tmp/fake.json',
116-
'https://github.com/fakeaccount/fakerepo/releases/tag/fakerelease']
116+
'https://github.com/caltechlibrary/iga/releases/tag/v1.0.0']
117117
result = runner.invoke(cli, args)
118118
assert result.exit_code == int(ExitCode.success)
119119
assert 'INVENIO_SERVER' in os.environ

tests/test_record_from_codemeta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def mocked_github_repo(account_name, repo_name):
9494
return repo
9595

9696

97-
def mocked_github_release(account_name, repo_name, tag_name):
97+
def mocked_github_release(account_name, repo_name, tag_name, test_only=False):
9898
log(f'returing mocked GitHubRelease for {tag_name}')
9999
with open(path.join(repo_dir, 'release.json'), 'r') as f:
100100
return GitHubRelease(json5.loads(f.read()))

0 commit comments

Comments
 (0)