Differential D8684 Diff 40807 examples/docs_snippets/docs_snippets_tests/deploying_tests/dagster_instance_tests/test_dagster_instance.py
Changeset View
Changeset View
Standalone View
Standalone View
examples/docs_snippets/docs_snippets_tests/deploying_tests/dagster_instance_tests/test_dagster_instance.py
import os | import os | ||||
from dagster.core.instance.config import dagster_instance_config | from dagster.core.instance.config import dagster_instance_config | ||||
def test_instance_yaml(docs_snippets_folder, snapshot): | def test_instance_yaml(docs_snippets_folder, snapshot): | ||||
# Before updating the snapshot for this test, please make sure that you | # Before updating the snapshot for this test, please make sure that you | ||||
# update the dagster.yaml at the path below to include the new addition | # update the dagster.yaml at the path below to include the new addition | ||||
# to the dagster.yaml configuration options. | # to the dagster.yaml configuration options. | ||||
instance_yaml_folder = os.path.join( | instance_yaml_folder = os.path.join( | ||||
docs_snippets_folder, | docs_snippets_folder, | ||||
"deploying", | "deploying", | ||||
"dagster_instance", | "dagster_instance", | ||||
) | ) | ||||
config, _custom_instance_class = dagster_instance_config(instance_yaml_folder) | config, _custom_instance_class = dagster_instance_config( | ||||
instance_yaml_folder | |||||
) | |||||
keys = sorted(list(config.keys())) | keys = sorted(list(config.keys())) | ||||
snapshot.assert_match(keys) | snapshot.assert_match(keys) |