Skip to content
This repository was archived by the owner on Mar 30, 2026. It is now read-only.

Commit 676e7e2

Browse files
committed
ADd test for repo_list()
1 parent f8ee247 commit 676e7e2

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/test_core.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,13 @@ def test_dump_config_file(sgit):
7373
file_content = yaml.load(stream, Loader=yaml.Loader)
7474

7575
assert file_content == mock_config_data
76+
77+
78+
def test_repo_list(sgit):
79+
retcode = sgit.init_repo()
80+
assert retcode == None
81+
82+
## Assume that if no repo has been added we should get an error
83+
## The default configfile after init_repo is empty and usable here
84+
retcode = sgit.repo_list()
85+
assert retcode == 1

0 commit comments

Comments
 (0)