Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
njgibbon committed Sep 17, 2021
1 parent 5d87575 commit e2c81dd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion file_dir_set_ops/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def main():
operation_choices = intersection_choices + union_choices + complement_choices

arg_parser = argparse.ArgumentParser()
arg_parser.add_argument('--version', '-version', '--v', '-v', action='version', version='0.0.0.3')
arg_parser.add_argument('--version', '-version', '--v', '-v', action='version', version='0.1.0')
arg_parser.add_argument('--operation', '-operation', '--op', '-op', action='store', type=str, required=True, choices=operation_choices, help='Set operation to perform.')
arg_parser.add_argument('--dir-paths', '-dir-paths', '--paths', '-paths', action='store', type=str, required=True, nargs='+', help='Directory paths for sets of files that will be used in Set operations.')
args = arg_parser.parse_args()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
description='Set Operations on File Directories.',
long_description='Set Operations on File Directories.',
url='https://github.com/njgibbon/file-dir-set-ops',
version='0.0.0.3',
version='0.1.0',
author="Nick Gibbon",
packages=find_packages(),
entry_points={
Expand Down
6 changes: 6 additions & 0 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ class TestMain(unittest.TestCase):
def test_print_items_with_newline(self):
items = ['a', 'b']
file_dir_set_ops.main.print_items_with_newline(items)

def test_get_file_set_from_dir_path(self):
expected_set = {'a.txt', 'file.txt'}
file_set = file_dir_set_ops.main.get_file_set_from_dir_path("tests/data/a")
print(file_set)
assert(file_set == expected_set)

0 comments on commit e2c81dd

Please sign in to comment.