Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ PYTEST_ADMIN_PASSWORD=start123
PYTEST_DEFAULT_MASTER_IMAGE=python/base
PYTEST_ASYNC_MAX_RETRIES=5
PYTEST_ASYNC_RETRY_DELAY_MILLIS=500
PYTEST_HUB_VERSION=0.8.43
PYTEST_HUB_VERSION=0.10.1
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "flame-hub-client"
version = "0.2.15"
description = "HTTP client for interacting with FLAME Hub services."
authors = [
{ name = "Maximilian Jugl", email = "Maximilian.Jugl@medizin.uni-leipzig.de" },
{ name = "Maximilian Jugl" },
{ name = "Paul Brassel", email = "Paul.Brassel@medizin.uni-leipzig.de" }
]
readme = "README.md"
Expand Down
9 changes: 7 additions & 2 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ def analysis_node_includables():

@pytest.fixture()
def analysis_code_bucket(core_client, analysis):
def _wait_for_buckets():
assert len(core_client.find_analysis_buckets(filter={"analysis_id": analysis.id})) != 0

assert_eventually(_wait_for_buckets)

analysis_buckets = core_client.find_analysis_buckets(filter={"analysis_id": analysis.id})
code_buckets = [bucket for bucket in analysis_buckets if bucket.type == AnalysisBucketType.CODE]

Expand Down Expand Up @@ -344,7 +349,7 @@ def test_update_project(core_client, project):
new_node = core_client.update_project(project.id, name=new_name)

assert project != new_node
assert new_node.name == new_name
assert new_node.name.lower() == new_name.lower()


def test_get_project_nodes(core_client, project_node, project_node_includables):
Expand Down Expand Up @@ -421,7 +426,7 @@ def test_update_analysis(core_client, analysis):
new_analysis = core_client.update_analysis(analysis.id, name=new_name, image_command_arguments=args)

assert analysis != new_analysis
assert new_analysis.name == new_name
assert new_analysis.name.lower() == new_name.lower()
assert new_analysis.image_command_arguments == args # Note that args is modified during updating the analysis.


Expand Down