Permalink
Browse files

Fixing requirements and abstract crud for api instance to flow

Summary: Importlib needs to be included in requirements

Test Plan: Unit Tests and Integration Tests
  • Loading branch information...
1 parent e0626b6 commit 4991ec34dd8bf18873f5abaab08be864312995c2 Rituparna Mukherjee committed Apr 14, 2016
Showing with 6 additions and 0 deletions.
  1. +1 −0 .travis.yml
  2. +4 −0 facebookads/adobjects/abstractcrudobject.py
  3. +1 −0 requirements.txt
View
@@ -7,5 +7,6 @@ env:
- TOX_ENV=py26
install:
- pip install tox
+ - '[ "$TOX_ENV" = "py26" ] && pip install importlib || true'
script:
- tox -e $TOX_ENV
@@ -259,6 +259,7 @@ def remote_create(
node_id=self.get_parent_id_assured(),
method='POST',
endpoint=self.get_endpoint(),
+ api=self._api,
target_class=self.__class__,
response_parser=ObjectParser(
reuse_object=self
@@ -327,6 +328,7 @@ def remote_read(
node_id=self.get_id_assured(),
method='GET',
endpoint='/',
+ api=self._api,
target_class=self.__class__,
response_parser=ObjectParser(
reuse_object=self
@@ -392,6 +394,7 @@ def remote_update(
node_id=self.get_id_assured(),
method='POST',
endpoint='/',
+ api=self._api,
target_class=self.__class__,
response_parser=ObjectParser(
reuse_object=self
@@ -453,6 +456,7 @@ def remote_delete(
node_id=self.get_id_assured(),
method='DELETE',
endpoint='/',
+ api=self._api,
)
request.add_params(params)
if batch is not None:
View
@@ -1,2 +1,3 @@
requests >= 2.3.0
six >= 1.7.3
+

0 comments on commit 4991ec3

Please sign in to comment.