Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
PB-159: update xain-{proto,sdk} dependencies to the right branch (#301)
Browse files Browse the repository at this point in the history
* PB-159: update xain-{proto,sdk} dependencies to the right branch

Follow-up of #298

* PB-159: fix broken tests

This test broke due to a change in xain-sdk.

Ref: https://github.com/xainag/xain-sdk/pull/91/
  • Loading branch information
little-dude authored Feb 20, 2020
1 parent 05c150b commit 4679e93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"numpy==1.15", # BSD
"grpcio==1.23", # Apache License 2.0
"structlog==19.2.0", # Apache License 2.0
"xain-proto @ git+https://github.com/xainag/xain-proto.git@PB-159-use-s3-for-transfering-weights#egg=xain_proto-0.6.0&subdirectory=python", # Apache License 2.0
"xain-proto @ git+https://github.com/xainag/xain-proto.git@development#egg=xain_proto-0.6.0&subdirectory=python", # Apache License 2.0
"boto3==1.10.48", # Apache License 2.0
"toml==0.10.0", # MIT
"schema~=0.7", # MIT
Expand All @@ -53,7 +53,7 @@
"pytest-cov==2.8.1", # MIT
"pytest-watch==4.2.0", # MIT
"pytest-mock==2.0.0", # MIT
"xain-sdk@ git+https://github.com/xainag/xain-sdk.git@PB-159-use-s3-for-transfering-weights#egg=xain_sdk-0.6.0", # Apache License 2.0
"xain-sdk@ git+https://github.com/xainag/xain-sdk.git@development#egg=xain_sdk-0.6.0", # Apache License 2.0
]

docs_require = [
Expand Down
3 changes: 2 additions & 1 deletion tests/test_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ def test_message_loop(mock_heartbeat_request, _mock_sleep, _mock_event):
message_loop(channel, state_record, terminate_event)

# check that the heartbeat is sent exactly twice
mock_heartbeat_request.assert_has_calls([mock.call(), mock.call()])
expected_call = mock.call(round=-1, state=State.READY)
mock_heartbeat_request.assert_has_calls([expected_call, expected_call])


@pytest.mark.integration
Expand Down

0 comments on commit 4679e93

Please sign in to comment.