1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Don't consider results as modified if they're empty.

This commit is contained in:
Virgil Dupras
2011-01-14 15:12:02 +01:00
parent 19b40d45c0
commit c9fd1b1a17
2 changed files with 6 additions and 1 deletions

View File

@@ -72,6 +72,11 @@ class TestCaseResultsEmpty:
def test_is_modified(self):
assert not self.results.is_modified
def test_is_modified_after_setting_empty_group(self):
# Don't consider results as modified if they're empty
self.results.groups = []
assert not self.results.is_modified
class TestCaseResultsWithSomeGroups:
def setup_method(self, method):