Differential D4920 Diff 24623 python_modules/libraries/dagstermill/dagstermill_tests/test_manager.py
Changeset View
Changeset View
Standalone View
Standalone View
python_modules/libraries/dagstermill/dagstermill_tests/test_manager.py
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | with in_pipeline_manager( | ||||
).to_dict(), | ).to_dict(), | ||||
) as manager: | ) as manager: | ||||
with pytest.raises(TypeError): | with pytest.raises(TypeError): | ||||
manager.yield_result(threading.Lock()) | manager.yield_result(threading.Lock()) | ||||
def test_in_pipeline_manager_bad_solid(): | def test_in_pipeline_manager_bad_solid(): | ||||
with pytest.raises( | with pytest.raises( | ||||
check.CheckError, match=("Pipeline hello_world_pipeline has no solid named foobar"), | check.CheckError, match=("hello_world_pipeline has no solid named foobar"), | ||||
): | ): | ||||
with in_pipeline_manager(solid_handle=SolidHandle("foobar", None)) as _manager: | with in_pipeline_manager(solid_handle=SolidHandle("foobar", None)) as _manager: | ||||
pass | pass | ||||
def test_in_pipeline_manager_bad_yield_result(): | def test_in_pipeline_manager_bad_yield_result(): | ||||
with in_pipeline_manager() as manager: | with in_pipeline_manager() as manager: | ||||
with pytest.raises( | with pytest.raises( | ||||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |