Skip to content

Commit

Permalink
fix pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
amirgolp committed Oct 23, 2024
1 parent 6f1e26c commit 2cb6997
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tests/schema_packages/labfolder/test_labfolder.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,15 +226,15 @@ def mock_labfolder_response_method(*args, **kwargs):
labfolder_instance.resync_labfolder_repository = True
test_archive.data = labfolder_instance

if status_code is 200:
if status_code == 200:
labfolder_instance.normalize(test_archive, logger=logger)
assert len(labfolder_instance.entries) is 1
assert len(labfolder_instance.entries) == 1
assert labfolder_instance.labfolder_email is None
assert labfolder_instance.password is None

parsed_data = labfolder_instance.entries[0].elements[0].m_to_dict()
del parsed_data['m_def']
if parsed_data['element_type'] is not 'DATA':
if parsed_data['element_type'] != 'DATA':
assert json.dumps(parsed_data, sort_keys=True) == json.dumps(
response_data, sort_keys=True
)
Expand Down
6 changes: 3 additions & 3 deletions tests/schema_packages/openbis/test_openbis.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ def mock_openbis_response(*args, **kwargs):
openbis_instance.password = password
test_archive.data = openbis_instance

if status_code is 200:
if status_code == 200:
openbis_instance.normalize(test_archive, logger=logger)
assert len(openbis_instance.spaces) is 1
assert len(openbis_instance.spaces) == 1
assert openbis_instance.username is None
assert openbis_instance.password is None

Expand All @@ -178,6 +178,6 @@ def mock_openbis_response(*args, **kwargs):
assert json.dumps(parsed_openbis_experiments, sort_keys=True) == json.dumps(
experiment_data, sort_keys=True
)
if status_code is 400:
if status_code == 400:
with pytest.raises(OpenbisImportError):
openbis_instance.normalize(test_archive, logger=logger)

0 comments on commit 2cb6997

Please sign in to comment.