@@ -329,16 +329,21 @@ def test_request_list__no_repo_slug__https(self, capsys, caplog):
329
329
assert out == ' 1\t desc1 \t http://request/1\n 2\t desc2 \t http://request/2\n 3\t desc3 \t http://request/3\n '
330
330
assert 'id' in caplog .text and 'title' in caplog .text and 'URL' in caplog .text
331
331
332
- def test_request_list__no_repo_slug__https_dot_git (self , capsys , caplog ):
332
+ def test_request_list__no_repo_slug__https_dot_git_fix__issue55 (self ):
333
333
from subprocess import call
334
334
call (['git' , 'init' , '-q' , self .tempdir .name ])
335
335
call (['git' , '--git-dir={}/.git' .format (self .tempdir .name ), 'remote' , 'add' , 'github' , 'https://github.com/guyzmo/.git-repo' ])
336
336
repo_slug , seen_args = self .main_request_list (rc = 0 , args = {})
337
337
assert ('guyzmo' , '.git-repo' ) == repo_slug
338
338
assert dict () == seen_args
339
- out , err = capsys .readouterr ()
340
- assert out == ' 1\t desc1 \t http://request/1\n 2\t desc2 \t http://request/2\n 3\t desc3 \t http://request/3\n '
341
- assert 'id' in caplog .text and 'title' in caplog .text and 'URL' in caplog .text
339
+
340
+ def test_request_list__no_repo_slug__git_dot_git_fix__issue55 (self ):
341
+ from subprocess import call
342
+ call (['git' , 'init' , '-q' , self .tempdir .name ])
343
+ call ([
'git' ,
'--git-dir={}/.git' .
format (
self .
tempdir .
name ),
'remote' ,
'add' ,
'github' ,
'[email protected] :guyzmo/.git-repo' ])
344
+ repo_slug , seen_args = self .main_request_list (rc = 0 , args = {})
345
+ assert ('guyzmo' , '.git-repo' ) == repo_slug
346
+ assert dict () == seen_args
342
347
343
348
def test_request_fetch__request (self , capsys , caplog ):
344
349
from subprocess import call
0 commit comments