Skip to content

Commit

Permalink
Add integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
stefsmeets committed Aug 26, 2024
1 parent 00fb4cf commit 20b0ebc
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/integration/test_proteus_start.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from __future__ import annotations

from pathlib import Path

from helpers import PROTEUS_ROOT

from proteus import Proteus


def test_dummy_run():
config_path = PROTEUS_ROOT / 'input' / 'dummy.toml'

runner = Proteus(config_path=config_path)

runner.config['log_level'] = 'WARNING'
runner.config['plot_iterfreq'] = 0
runner.config['iter_max'] = 0

runner.start()

output = Path(runner.directories['output'])

assert 'Completed' in (output / 'status').read_text()

0 comments on commit 20b0ebc

Please sign in to comment.