Differential D8684 Diff 40807 examples/docs_snippets/docs_snippets_tests/deploying_tests/test_local.py
Changeset View
Changeset View
Standalone View
Standalone View
examples/docs_snippets/docs_snippets_tests/deploying_tests/test_local.py
from dagster import file_relative_path | from dagster import file_relative_path | ||||
from dagster.core.instance.config import dagster_instance_config | from dagster.core.instance.config import dagster_instance_config | ||||
def test_dagster_yaml(): | def test_dagster_yaml(): | ||||
dagster_yaml_folder = file_relative_path(__file__, "../../docs_snippets/deploying/docker/") | dagster_yaml_folder = file_relative_path( | ||||
__file__, "../../docs_snippets/deploying/docker/" | |||||
) | |||||
res, custom_instance_class = dagster_instance_config(dagster_yaml_folder, "dagster.yaml") | res, custom_instance_class = dagster_instance_config( | ||||
dagster_yaml_folder, "dagster.yaml" | |||||
) | |||||
assert set(res.keys()) == { | assert set(res.keys()) == { | ||||
"run_storage", | "run_storage", | ||||
"event_log_storage", | "event_log_storage", | ||||
"schedule_storage", | "schedule_storage", | ||||
"compute_logs", | "compute_logs", | ||||
"local_artifact_storage", | "local_artifact_storage", | ||||
} | } | ||||
assert custom_instance_class is None | assert custom_instance_class is None |