Skip to content

Commit 7a4aa40

Browse files
committed
Start re-activating and adding some tests
1 parent fb918f8 commit 7a4aa40

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

test/hermes_test/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ def __setitem__(self, path, data):
2323

2424
def __enter__(self):
2525
self.test_path.mkdir(parents=True, exist_ok=True)
26+
2627
for file_name, data in self.test_files.items():
2728
file_path = self.test_path / file_name
29+
file_path.parent.mkdir(parents=True, exist_ok=True)
2830
file_path.write_text(data)
2931

3032
os.chdir(self.test_path)

test/hermes_test/test_cli.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,27 @@
99
from hermes.commands import cli
1010

1111

12-
def test_hermes_full(capsys):
12+
def test_hermes_full():
1313
with pytest.raises(SystemExit) as se:
1414
cli.main()
1515
assert "choose from" in se
1616

1717

18-
@pytest.mark.skip(reason="Needs update")
1918
def test_hermes_harvest(hermes_env):
19+
hermes_env['hermes.toml'] = ""
20+
2021
with hermes_env:
2122
result = hermes_env.run("harvest")
2223

2324
assert result.returncode == 0
2425

2526

26-
@pytest.mark.skip(reason="Needs update")
2727
def test_hermes_process(hermes_env):
28+
hermes_env['hermes.toml'] = ""
29+
hermes_env['.hermes/harvest/test.json'] = ""
30+
2831
with hermes_env:
2932
result = hermes_env.run("process")
33+
print(result.stdout.read())
3034

3135
assert result.returncode == 0

0 commit comments

Comments
 (0)