1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 06:37:17 +00:00

[#138] Completed re-prioritization workflow, now all that is needed is to add more criteria, handle corner case and build the GUI for it.

This commit is contained in:
Virgil Dupras
2011-09-08 12:36:57 -04:00
parent 518228a368
commit 9c30486f14
4 changed files with 42 additions and 4 deletions

View File

@@ -40,4 +40,14 @@ def app_normal_results():
def test_kind_subcrit(app):
# The subcriteria of the "Kind" criteria is a list of extensions contained in the dupes.
app.select_pri_criterion("Kind")
eq_(app.pdialog.criteria_list, ['ext1', 'ext2'])
eq_(app.pdialog.criteria_list[:], ['ext1', 'ext2'])
@with_app(app_normal_results)
def test_perform_reprioritization(app):
# Just a simple test of the system as a whole.
# select a criterion, and perform re-prioritization and see if it worked.
app.select_pri_criterion("Kind")
app.pdialog.criteria_list.select([1]) # ext2
app.pdialog.add_selected()
app.pdialog.perform_reprioritization()
eq_(app.rtable[0].data[0], 'foo2.ext2')