Skip to content

Commit

Permalink
Corrected test for list with empty depth
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Francois Thuong committed Dec 23, 2020
1 parent b29fb71 commit 610ed95
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/test_common.py
Expand Up @@ -121,20 +121,21 @@ def test_list(self):
with svn.test_support.temp_common() as (_, _, cc):
svn.test_support.populate_bigger_file_changes1()

entries = cc.list()
entries = sorted(entries)

expected = [
'committed_changed',
'committed_deleted',
'committed_unchanged',
'new_file',
]

self.assertListEqual(entries, expected)
entries = cc.list()
self.assertListEqual(sorted(entries), expected)

empty_entries = cc.list(depth="empty")
self.assertListEqual(list(empty_entries), [])

empty_entries = cc.list(depth="empty", include_ext=True)
self.assertListEqual(empty_entries, [])
entries = cc.list(include_ext=True)
self.assertListEqual(sorted(entries), expected)
# TODO: include_ext/--include-externals not really tested

def test_info(self):
Expand Down

0 comments on commit 610ed95

Please sign in to comment.