Skip to content

Commit

Permalink
test: fix rendering test
Browse files Browse the repository at this point in the history
  • Loading branch information
makkus committed Mar 12, 2024
1 parent efd02fc commit c17b22c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/kiara/interfaces/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def kiara_config(self) -> "KiaraConfig":
else:
kiara_config = KiaraConfig.load_from_file(config_file_path)

# kiara_config.runtime_config.runtime_profile = "default"
kiara_config.runtime_config.runtime_profile = "default"

self._kiara_config = kiara_config
return self._kiara_config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ inputs_{{ step_id }} = {
{% endfor -%}
}
{% if not step.manifest_src.module_config -%}
results_{{ step_id }} = kiara.run_job('{{ step.manifest_src.module_type }}', inputs=inputs_{{ step_id }})
results_{{ step_id }} = kiara.run_job('{{ step.manifest_src.module_type }}', inputs=inputs_{{ step_id }}, comment="")
{% else -%}
step_config_{{ step_id }} = {{ step.manifest_src.module_config }}
results_{{ step_id }} = kiara.run_job('{{ step.manifest_src.module_type }}', operation_config=step_config_{{ step_id }}, inputs=inputs_{{ step_id }})
results_{{ step_id }} = kiara.run_job('{{ step.manifest_src.module_type }}', operation_config=step_config_{{ step_id }}, inputs=inputs_{{ step_id }}, comment="")
{% endif -%}
{% endfor -%}
{% endfor %}
Expand Down
6 changes: 6 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ def kiara() -> Kiara:

instance_path = create_temp_dir()
kc = KiaraConfig.create_in_folder(instance_path)
kc.runtime_config.runtime_profile = "default"

kiara = kc.create_context()
return kiara

Expand All @@ -99,6 +101,7 @@ def api() -> KiaraAPI:

instance_path = create_temp_dir()
kc = KiaraConfig.create_in_folder(instance_path)
kc.runtime_config.runtime_profile = "default"
api = KiaraAPI(kc)
return api

Expand All @@ -111,6 +114,7 @@ def presseeded_data_store_minimal() -> Kiara:
pipeline_file = os.path.join(PIPELINES_FOLDER, "table_import.json")

kc = KiaraConfig.create_in_folder(instance_path)
kc.runtime_config.runtime_profile = "default"

kiara = kc.create_context()

Expand All @@ -133,6 +137,8 @@ def preseeded_data_store() -> Kiara:

instance_path = create_temp_dir()
kc = KiaraConfig.create_in_folder(instance_path)
kc.runtime_config.runtime_profile = "default"

kiara = kc.create_context()

pipeline = os.path.join(PIPELINES_FOLDER, "test_preseed_1.yaml")
Expand Down

0 comments on commit c17b22c

Please sign in to comment.