Skip to content

Commit

Permalink
mocked api_client
Browse files Browse the repository at this point in the history
  • Loading branch information
rienafairefr committed Sep 17, 2018
1 parent 1a33f68 commit 46179db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/cli/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def mocked_state():
return State()


@patch('rebrickable_cli.cli.main.get_api_client', new=Mock())
@patch.object(LegoApi, 'lego_parts_read', Mock(return_value=Part(part_num='3002')))
def test_lego_part_command_pass_obj(runner):
@lego_part.command(name='test')
Expand Down

0 comments on commit 46179db

Please sign in to comment.