@@ -59,3 +59,61 @@ def test_iter_orgs(self):
59
59
args = ('login' , - 1 )
60
60
github3 .iter_orgs (* args )
61
61
self .gh .iter_orgs .assert_called_with (* args )
62
+
63
+ def test_iter_repos (self ):
64
+ args = ('login' , '' , '' , '' , - 1 )
65
+ github3 .iter_repos (* args )
66
+ self .gh .iter_repos .assert_called_with (* args )
67
+
68
+ def test_iter_starred (self ):
69
+ github3 .iter_starred ('login' )
70
+ self .gh .iter_starred .assert_called_with ('login' , - 1 )
71
+
72
+ def test_iter_subcriptions (self ):
73
+ github3 .iter_subscriptions ('login' )
74
+ self .gh .iter_subscriptions .assert_called_with ('login' , - 1 )
75
+
76
+ def test_create_gist (self ):
77
+ args = ('description' , {'files' : ['files' ]})
78
+ github3 .create_gist (* args )
79
+ self .gh .create_gist .assert_called_with (* args )
80
+
81
+ def test_issue (self ):
82
+ args = ('owner' , 'repo' , 1 )
83
+ github3 .issue (* args )
84
+ self .gh .issue .assert_called_with (* args )
85
+
86
+ def test_markdown (self ):
87
+ args = ('text' , '' , '' , False )
88
+ github3 .markdown (* args )
89
+ self .gh .markdown .assert_called_with (* args )
90
+
91
+ def test_octocat (self ):
92
+ github3 .octocat ()
93
+ assert self .gh .octocat .called is True
94
+
95
+ def test_organization (self ):
96
+ github3 .organization ('login' )
97
+ self .gh .organization .assert_called_with ('login' )
98
+
99
+ def test_pull_request (self ):
100
+ args = ('owner' , 'repo' , 1 )
101
+ github3 .pull_request (* args )
102
+ self .gh .pull_request .assert_called_with (* args )
103
+
104
+ def test_repository (self ):
105
+ args = ('owner' , 'repo' )
106
+ github3 .repository (* args )
107
+ self .gh .repository .assert_called_with (* args )
108
+
109
+ def test_search_issues (self ):
110
+ args = ('owner' , 'repo' , 'state' , 'keyword' )
111
+ github3 .search_issues (* args )
112
+ self .gh .search_issues .assert_called_with (* args )
113
+
114
+ #def search_repos(keyword, **params):
115
+ #def search_users(keyword):
116
+ #def search_email(email):
117
+ #def user(login):
118
+ #def ratelimit_remaining():
119
+ #def zen():
0 commit comments