Skip to content

Commit

Permalink
Move simple test yaml-file from specs into tests
Browse files Browse the repository at this point in the history
Ref. #47, #382
  • Loading branch information
treiher authored and Alexander Senier committed Aug 18, 2020
1 parent 87994d3 commit d114a11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@ def test_main_graph_non_existent_files(tmp_path: Path) -> None:


def test_main_session() -> None:
assert cli.main(["rflx", "session", "specs/simple.yaml"]) == 0
assert cli.main(["rflx", "session", "tests/simple.yml"]) == 0


def test_main_session_with_graph(tmp_path: Path) -> None:
assert (
cli.main(["rflx", "session", "-d", str(tmp_path), "--format", "svg", "specs/simple.yaml"])
cli.main(["rflx", "session", "-d", str(tmp_path), "--format", "svg", "tests/simple.yml"])
== 0
)

Expand All @@ -146,7 +146,7 @@ def test_main_session_non_existent_file() -> None:

def test_main_session_non_existent_directory() -> None:
assert 'session: error: directory not found: "non-existent directory"' in str(
cli.main(["rflx", "session", "-d", "non-existent directory", "specs/simple.yaml"])
cli.main(["rflx", "session", "-d", "non-existent directory", "tests/simple.yml"])
)


Expand Down

0 comments on commit d114a11

Please sign in to comment.