From 869e2abf99e56bb67adfda3b13330807743d7480 Mon Sep 17 00:00:00 2001 From: David Medina Date: Sun, 12 Feb 2012 12:44:06 +0100 Subject: Support to map `self` in resources. Very nested resources like Repo --- pygithub3/tests/utils/resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pygithub3/tests/utils/resources.py') 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 -- cgit v1.2.3-59-g8ed1b