File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 11from intercom .user import Resource
2+ from intercom .api_operations .all import All
23from intercom .api_operations .find import Find
34
45
5- class Admin (Resource , Find ):
6+ class Admin (Resource , Find , All ):
67 pass
Original file line number Diff line number Diff line change 1+ from describe import expect
2+ from describe import patch
3+ from intercom import Intercom
4+ from intercom .admin import Admin
5+ from intercom .collection_proxy import CollectionProxy
6+
7+
8+ class DescribeIntercomAdmin :
9+
10+ @patch .object (Intercom , 'send_request_to_path' )
11+ def it_returns_a_collection_proxy_for_all_without_making_any_requests (send_request , self ):
12+ send_request .expects ().and_raises (AssertionError )
13+ all = Admin .all ()
14+ expect (all ).to .be_instance_of (CollectionProxy )
You can’t perform that action at this time.
0 commit comments