Skip to content

Commit

Permalink
Fixed status_code when updated_basic_info
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Kanashiro <[email protected]>
Signed-off-by: Macartur Sousa <[email protected]>
  • Loading branch information
macartur committed May 23, 2016
1 parent 0ab5244 commit 2676c0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/colab_gitlab/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def update_basic_info_gitlab_user(sender, **kwargs):
LOGGER.error(error_msg)
return

if response.status_code != 201:
if response.status_code != 200:
reason = 'Unknown.'

try:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def test_update_user_with_valid_token(self, LOGGER_info_mock,
COLAB_APPS_mock):

resquests_post_mock.return_value = Mock(
status_code=201,
status_code=200,
json=lambda: {'message': 'Unauthorized'}
)

Expand Down

0 comments on commit 2676c0f

Please sign in to comment.