Skip to content
Snippets Groups Projects
Commit c1400e85 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed wrong client URL in cli client.

parent 36eecc55
No related branches found
No related tags found
3 merge requests!548Release v1,!461Draft: remove owner key from the query,!407Fix a bug concerning outcar parser
......@@ -39,11 +39,18 @@ def _create_client(*args, **kwargs):
def __create_client(
user: str = nomad_config.client.user,
password: str = nomad_config.client.password,
api_base_url: str = nomad_config.client.url,
user: str = None, password: str = None, api_base_url: str = None,
ssl_verify: bool = True, use_token: bool = True):
''' A factory method to create the client. '''
# Deferred assigning of default values (instead of using Pythons default arguments),
# because config might have been changed after import.
if user is None:
user = nomad_config.client.user
if password is None:
password = nomad_config.client.password
if api_base_url is None:
api_base_url = nomad_config.client.url
if not ssl_verify:
import warnings
warnings.filterwarnings("ignore")
......
......@@ -66,6 +66,9 @@ def integrationtests(ctx, skip_parsers, skip_publish, skip_doi, skip_mirror):
return upload
uploads = client.uploads.get_uploads(name='integration_test_upload').response().result.results
assert len(uploads) == 0, 'the test upload must not exist before'
if not skip_parsers:
print('upload multi code test data with curl')
command = command.replace('<local_file>', multi_code_example_file)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment