aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/tests/utils/resources.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-02-12 12:44:06 +0100
committerDavid Medina <davidmedina9@gmail.com>2012-02-12 12:44:06 +0100
commit869e2abf99e56bb67adfda3b13330807743d7480 (patch)
treecd62b5942d8f04846b182a51bfcc17430d9cdebb /pygithub3/tests/utils/resources.py
parentUpdate readme (diff)
downloadpython-github3-869e2abf99e56bb67adfda3b13330807743d7480.tar.xz
python-github3-869e2abf99e56bb67adfda3b13330807743d7480.zip
Support to map `self` in resources.
Very nested resources like Repo
Diffstat (limited to 'pygithub3/tests/utils/resources.py')
-rw-r--r--pygithub3/tests/utils/resources.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygithub3/tests/utils/resources.py b/pygithub3/tests/utils/resources.py
index 364cc6f..e03d47d 100644
--- a/pygithub3/tests/utils/resources.py
+++ b/pygithub3/tests/utils/resources.py
@@ -14,7 +14,7 @@ class HasSimple(Resource):
class Nested(Resource):
_dates = ('date', )
- _maps = {'simple': Simple}
+ _maps = {'simple': Simple, 'self_nested': 'self'}
_collection_maps = {
'list_collection': HasSimple,
'items_collections': HasSimple