Skip to content

Commit a0c0005

Browse files
author
notactuallyfinn
committed
fix tests that are affected by error handling update
1 parent 34877b9 commit a0c0005

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

test/hermes_test/test_cli.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@ def test_hermes_full():
1818

1919

2020
def test_hermes_harvest(hermes_env):
21-
hermes_env['hermes.toml'] = ""
21+
hermes_env['hermes.toml'] = "[harvest]\nsources = [\"cff\"]\n"
22+
hermes_env['CITATION.cff'] = """cff-version: 1.2.0
23+
title: Test
24+
message: >-
25+
test tests
26+
type: software
27+
authors:
28+
- given-names: Testi"""
2229

2330
with hermes_env:
2431
result = hermes_env.run("harvest")
@@ -27,8 +34,8 @@ def test_hermes_harvest(hermes_env):
2734

2835

2936
def test_hermes_process(hermes_env):
30-
hermes_env['hermes.toml'] = ""
31-
hermes_env['.hermes/harvest/test.json'] = ""
37+
hermes_env['hermes.toml'] = "[process]\nsources = [\"cff\"]"
38+
hermes_env['.hermes/harvest/cff/codemeta.json'] = "{}"
3239

3340
with hermes_env:
3441
result = hermes_env.run("process")

0 commit comments

Comments
 (0)