Differential D4920 Diff 24623 python_modules/dagster/dagster_tests/cli_tests/command_tests/test_cli_commands.py
Changeset View
Changeset View
Standalone View
Standalone View
python_modules/dagster/dagster_tests/cli_tests/command_tests/test_cli_commands.py
Show First 20 Lines • Show All 330 Lines • ▼ Show 20 Lines | |||||
@contextmanager | @contextmanager | ||||
def grpc_server_backfill_args(): | def grpc_server_backfill_args(): | ||||
with default_cli_test_instance() as instance: | with default_cli_test_instance() as instance: | ||||
with grpc_server_bar_kwargs() as args: | with grpc_server_bar_kwargs() as args: | ||||
yield merge_dicts(args, {"noprompt": True}), False, instance | yield merge_dicts(args, {"noprompt": True}), False, instance | ||||
def non_existant_python_origin_target_args(): | |||||
return { | |||||
"workspace": None, | |||||
"pipeline": "foo", | |||||
"python_file": file_relative_path(__file__, "made_up_file.py"), | |||||
"module_name": None, | |||||
"attribute": "bar", | |||||
} | |||||
def valid_pipeline_python_origin_target_args(): | def valid_pipeline_python_origin_target_args(): | ||||
return [ | return [ | ||||
{ | { | ||||
"workspace": None, | "workspace": None, | ||||
"pipeline": "foo", | "pipeline": "foo", | ||||
"python_file": file_relative_path(__file__, "test_cli_commands.py"), | "python_file": file_relative_path(__file__, "test_cli_commands.py"), | ||||
"module_name": None, | "module_name": None, | ||||
"attribute": "bar", | "attribute": "bar", | ||||
▲ Show 20 Lines • Show All 258 Lines • Show Last 20 Lines |