Skip to content

Commit e5de8de

Browse files
committed
Adding tests for github request commands handling
1 parent 7a3bfc3 commit e5de8de

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

tests/integration/test_github.py

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,30 @@ def test_12_add__alone_default_name(self):
118118
name='test0r',
119119
tracking='github')
120120

121-
def test_13_open(self):
121+
def test_13_request_list(self):
122+
self.action_request_list(
123+
cassette_name=sys._getframe().f_code.co_name,
124+
namespace='guyzmo',
125+
repository='git-repo',
126+
rq_list_data=[
127+
(3, 'docs for fqdn > url', 'https://api.github.com/repos/guyzmo/git-repo/issues/3'),
128+
(2, 'prefer gitrepo.<target>.token > privatekey, docs', 'https://api.github.com/repos/guyzmo/git-repo/issues/2'),
129+
])
130+
131+
def test_14_request_fetch(self):
132+
self.action_request_fetch(cassette_name=sys._getframe().f_code.co_name,
133+
namespace='guyzmo',
134+
repository='git-repo',
135+
request='2')
136+
137+
def test_15_request_fetch__bad_request(self):
138+
with pytest.raises(ResourceNotFoundError):
139+
self.action_request_fetch(cassette_name=sys._getframe().f_code.co_name,
140+
namespace='guyzmo',
141+
repository='git-repo',
142+
request='1')
143+
144+
def test_31_open(self):
122145
self.action_open(cassette_name=sys._getframe().f_code.co_name,
123146
namespace='guyzmo',
124147
repository='git-repo')

0 commit comments

Comments
 (0)