-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
25 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
name: Python package | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
"ArcsecondConnectionError", | ||
"ArcsecondInvalidEndpointError"] | ||
|
||
__version__ = '0.7.0' | ||
__version__ = '0.7.1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,30 +43,16 @@ def test_register_refuse_agreement(monkeypatch): | |
assert result.exit_code != 0 and result.exception | ||
|
||
|
||
@httpretty.activate | ||
def test_register_agree_on_agreement(monkeypatch): | ||
runner = CliRunner() | ||
monkeypatch.setattr('six.moves.input', lambda x: "y") | ||
httpretty.register_uri( | ||
httpretty.POST, | ||
ARCSECOND_API_URL_DEV + API_AUTH_PATH_REGISTER, | ||
status=201, | ||
body='{"key": "dummy_api_key."}' | ||
) | ||
result = runner.invoke(cli.register, ['-d'], input='test16\n[email protected]\ntest1\ntest1') | ||
assert result.exit_code == 0 and not result.exception | ||
|
||
# I can't find a way to use httpretyy.activate and monkeypatch at the same time. | ||
# @httpretty.activate | ||
# def test_register_agree_agreement(monkeypatch): | ||
# def test_register_agree_on_agreement(monkeypatch): | ||
# runner = CliRunner() | ||
# httpretty.register_uri( | ||
# httpretty.POST, | ||
# ARCSECOND_API_URL_DEV + API_AUTH_PATH_REGISTER, | ||
# status=201, | ||
# body='{"token": "dummy_token."}' | ||
# body='{"key": "dummy_api_key."}' | ||
# ) | ||
# for answer in ['y', 'Y', 'yes', 'YES']: | ||
# monkeypatch.setattr('six.moves.input', lambda x: answer) | ||
# result = runner.invoke(cli.register, ['-d'], input='test\[email protected]\ntest1\ntest1') | ||
# assert result.exit_code == 0 and not result.exception | ||
# monkeypatch.setattr('six.moves.input', lambda x: "y") | ||
# result = runner.invoke(cli.register, ['-d'], input='test16\[email protected]\ntest1\ntest1') | ||
# assert result.exit_code == 0 and not result.exception |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters