Commit 1be4e6ce authored by darko-poljak's avatar darko-poljak

lots of improvements

parent 8cc08979
add logging, status file examined, etc.?
add argument mv, rm action: preserve directory prefix
import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='sweeper',
version='0.4.0',
......@@ -30,4 +32,3 @@ setup(
"Topic :: Software Development :: Libraries :: Python Modules",
],
)
This diff is collapsed.
......@@ -11,7 +11,7 @@ mydir = os.path.dirname(os.path.realpath(__file__))
class TestSweeper(unittest.TestCase):
def test_file_dups_dups(self):
dups = file_dups([os.path.join(mydir, 'testfiles_dups')], 'md5')
dups = file_dups([os.path.join(mydir, 'testfiles_dups')])
dups_exist = False
for h, flist in dups.items():
if len(flist) > 1:
......@@ -19,7 +19,7 @@ class TestSweeper(unittest.TestCase):
self.assertTrue(dups_exist)
def test_file_dups_nodups(self):
dups = file_dups([os.path.join(mydir, 'testfiles_nodups')], 'md5')
dups = file_dups([os.path.join(mydir, 'testfiles_nodups')])
for h, flist in dups.items():
self.assertTrue(len(flist) == 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment