Skip to content

Commit

Permalink
Merge branch 'main' into add_example_of_mock_and_dip
Browse files Browse the repository at this point in the history
  • Loading branch information
eivindjahren authored Oct 17, 2023
2 parents 9403517 + a076cfa commit c55d451
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/tdd_workshop/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
@click.argument("file_name", type=click.Path(exists=True))
def main(file_name: str) -> None:
coordinates = read_coordinates(file_name)
print(f"Read file: {file_name}, coordinates: {coordinates}")
print(f"Read file: {file_name}")
# TODO Find steepest slope, see https://github.com/equinor/tdd_workshop/issues/63
4 changes: 1 addition & 3 deletions tests/unit/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,4 @@ def test_that_cli_prints_coordinates(monkeypatch, tmp_path):
runner = CliRunner()
result = runner.invoke(main, ["test_input"])
assert result.exit_code == 0
assert (
"coordinates: [('2.0', '1.9'), ('2.5', '1.5'), ('3.3', '7.3')]" in result.output
)
assert "Read file: test_input" in result.output

0 comments on commit c55d451

Please sign in to comment.