aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/tests/utils/resources.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygithub3/tests/utils/resources.py')
-rw-r--r--pygithub3/tests/utils/resources.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/pygithub3/tests/utils/resources.py b/pygithub3/tests/utils/resources.py
new file mode 100644
index 0000000..364cc6f
--- /dev/null
+++ b/pygithub3/tests/utils/resources.py
@@ -0,0 +1,21 @@
+#!/usr/bin/env python
+# -*- encoding: utf-8 -*-
+
+from pygithub3.resources.base import Resource
+
+
+class Simple(Resource):
+ pass
+
+
+class HasSimple(Resource):
+ _maps = {'simple': Simple}
+
+
+class Nested(Resource):
+ _dates = ('date', )
+ _maps = {'simple': Simple}
+ _collection_maps = {
+ 'list_collection': HasSimple,
+ 'items_collections': HasSimple
+ }