Skip to content

Commit

Permalink
Added demo gif (#8)
Browse files Browse the repository at this point in the history
Demo gif of the cli command usage and installation added to the product.
  • Loading branch information
global authored Nov 10, 2020
1 parent e8408e1 commit 95b7868
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
# Added

- Added format text/json to `luas address` command
- Added demo gif

# [0.8.0] - 2020-11-06

Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ This is a CLI tool that helps you to get LUAS Irish Transport information. This

`luascli` is licensed under the MIT license.


## Demo

![demo](static/demo.gif)

## Basic information

This CLI uses the following format:
Expand Down
Binary file added static/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ def test_stops():

def test_status():
"""Test if running luas <line> status returns successfull with a valid result"""
response = runner.invoke(luas, ["status", "red"])
assert response.exit_code == 0
assert response.output == "Red Line services operating normally\n"
with mock.patch("luascli.main.get_status") as mock_get_status:
mock_get_status.return_value = "Red Line services operating normally"
response = runner.invoke(luas, ["status", "red"])
assert response.exit_code == 0
assert response.output == "Red Line services operating normally\n"

response = runner.invoke(luas, ["status", "ran"])
assert response.exit_code == 0
Expand Down

0 comments on commit 95b7868

Please sign in to comment.