Skip to content

Commit

Permalink
Merge e068050 into 5abb2b1
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangge committed Nov 29, 2017
2 parents 5abb2b1 + e068050 commit 52cc342
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions pdc_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def __setattr__(self, name, value):
return super(_SetAttributeWrapper, self).__setattr__(name, value)


class PDCClient(_SetAttributeWrapper):
class PDCClient(object):
"""BeanBag wrapper specialized for PDC access.
This class wraps general BeanBag.v1 objects, but provides easy-to-use
Expand Down Expand Up @@ -238,8 +238,6 @@ def decode(req):
token = self.obtain_token()
self.session.headers["Authorization"] = "Token %s" % token

self._initialized = True

def obtain_token(self):
"""
Try to obtain token from all end-points that were ever used to serve the
Expand Down
3 changes: 0 additions & 3 deletions tests/api/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,6 @@ def test_bad_put(self):
with self.assertRaises(BeanBagException):
self.client['bad_resource'] = {}

with self.assertRaises(BeanBagException):
self.client.bad_resource = {}

def test_str(self):
self.assertEqual(str(self.client.products.fedora), self.url + '/products/fedora')
self.assertEqual(str(self.client), self.url + '/')
Expand Down

0 comments on commit 52cc342

Please sign in to comment.