misc: remove check on sync-metadata --source option (#48500)
This commit is contained in:
parent
f89842ffab
commit
0153163669
|
@ -317,12 +317,6 @@ Any other kind of attribute filter policy is unsupported.
|
|||
verbosity = int(options['verbosity'])
|
||||
source = options['source']
|
||||
metadata_file_path = options['metadata_file_path']
|
||||
# Check sources
|
||||
try:
|
||||
if source is not None:
|
||||
source.decode('ascii')
|
||||
except UnicodeDecodeError:
|
||||
raise CommandError('--source MUST be an ASCII string value')
|
||||
if metadata_file_path.startswith('http://') or metadata_file_path.startswith('https://'):
|
||||
response = requests.get(metadata_file_path)
|
||||
if not response.ok:
|
||||
|
|
|
@ -287,7 +287,7 @@ def test_resetpassword(simple_user):
|
|||
|
||||
def test_sync_metadata(db):
|
||||
test_file = py.path.local(__file__).dirpath('metadata.xml').strpath
|
||||
call_command('sync-metadata', test_file)
|
||||
call_command('sync-metadata', test_file, source='abcd')
|
||||
|
||||
|
||||
def test_check_and_repair_managers_of_roles(db, capsys):
|
||||
|
|
Loading…
Reference in New Issue