Skip to content

Commit

Permalink
chore(version): bump the cli version to 1.1.0 & update tests (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
saranyailla authored Feb 25, 2022
1 parent 2e58fb3 commit 60a002f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Please follow the [GDK CLI public documentation](https://docs.aws.amazon.com/gre

To install the latest version of CLI using this git repository and pip, run the following command

`pip3 install git+https://github.com/aws-greengrass/aws-greengrass-gdk-cli.git@v1.0.0`
`pip3 install git+https://github.com/aws-greengrass/aws-greengrass-gdk-cli.git@v1.1.0`

Run `gdk --help` to check if the cli tool is successfully installed.

Expand Down
2 changes: 1 addition & 1 deletion gdk/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.0"
__version__ = "1.1.0"
6 changes: 0 additions & 6 deletions integration_tests/gdk/common/test_integ_utils.py

This file was deleted.

4 changes: 2 additions & 2 deletions tests/gdk/common/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ def test_get_latest_cli_version_invalid_request(mocker):
res_text = "__version__ = 1.0.0"
mock_response = mocker.Mock(status_code=200, text=lambda: res_text)
mock_get_version = mocker.patch("requests.get", return_value=mock_response, side_effect=HTTPError("hi"))

assert utils.get_latest_cli_version() == "1.0.0"
# Since the request failed, it'll be the version of the cli tool installed.
assert utils.get_latest_cli_version() == utils.cli_version
assert mock_get_version.called


Expand Down

0 comments on commit 60a002f

Please sign in to comment.