|
@@ -223,25 +223,25 @@ def test_make_archive_filter_flags_with_default_checks_and_prefix_includes_match
|
|
|
|
|
|
|
|
|
def test_make_check_flags_with_repository_check_returns_flag():
|
|
|
- flags = module.make_check_flags(('repository',), ())
|
|
|
+ flags = module.make_check_flags({'repository'}, ())
|
|
|
|
|
|
assert flags == ('--repository-only',)
|
|
|
|
|
|
|
|
|
def test_make_check_flags_with_archives_check_returns_flag():
|
|
|
- flags = module.make_check_flags(('archives',), ())
|
|
|
+ flags = module.make_check_flags({'archives'}, ())
|
|
|
|
|
|
assert flags == ('--archives-only',)
|
|
|
|
|
|
|
|
|
def test_make_check_flags_with_archives_check_and_archive_filter_flags_includes_those_flags():
|
|
|
- flags = module.make_check_flags(('archives',), ('--match-archives', 'sh:foo-*'))
|
|
|
+ flags = module.make_check_flags({'archives'}, ('--match-archives', 'sh:foo-*'))
|
|
|
|
|
|
assert flags == ('--archives-only', '--match-archives', 'sh:foo-*')
|
|
|
|
|
|
|
|
|
def test_make_check_flags_without_archives_check_and_with_archive_filter_flags_includes_those_flags():
|
|
|
- flags = module.make_check_flags(('repository',), ('--match-archives', 'sh:foo-*'))
|
|
|
+ flags = module.make_check_flags({'repository'}, ('--match-archives', 'sh:foo-*'))
|
|
|
|
|
|
assert flags == ('--repository-only',)
|
|
|
|
|
@@ -250,7 +250,7 @@ def test_make_check_flags_with_data_check_returns_flag_and_implies_archives():
|
|
|
flexmock(module.feature).should_receive('available').and_return(True)
|
|
|
flexmock(module.flags).should_receive('make_match_archives_flags').and_return(())
|
|
|
|
|
|
- flags = module.make_check_flags(('data',), ())
|
|
|
+ flags = module.make_check_flags({'data'}, ())
|
|
|
|
|
|
assert flags == (
|
|
|
'--archives-only',
|
|
@@ -262,7 +262,7 @@ def test_make_check_flags_with_extract_omits_extract_flag():
|
|
|
flexmock(module.feature).should_receive('available').and_return(True)
|
|
|
flexmock(module.flags).should_receive('make_match_archives_flags').and_return(())
|
|
|
|
|
|
- flags = module.make_check_flags(('extract',), ())
|
|
|
+ flags = module.make_check_flags({'extract'}, ())
|
|
|
|
|
|
assert flags == ()
|
|
|
|
|
@@ -272,10 +272,10 @@ def test_make_check_flags_with_repository_and_data_checks_does_not_return_reposi
|
|
|
flexmock(module.flags).should_receive('make_match_archives_flags').and_return(())
|
|
|
|
|
|
flags = module.make_check_flags(
|
|
|
- (
|
|
|
+ {
|
|
|
'repository',
|
|
|
'data',
|
|
|
- ),
|
|
|
+ },
|
|
|
(),
|
|
|
)
|
|
|
|