def test_pipelines(): result = execute_dagster_graphql(define_context(), '{ pipelines { nodes { name } } }') assert not result.errors assert result.data assert {p['name'] for p in result.data['pipelines']['nodes']} == { p.name for p in define_repository().get_all_pipelines() }
def test_pipelines_or_error_with_container_context(): result = execute_dagster_graphql( define_test_snapshot_context(), '{ pipelinesOrError { ... on PipelineConnection { nodes { name } } } } ', ) assert not result.errors assert result.data assert {p['name'] for p in result.data['pipelinesOrError']['nodes']} == { p.name for p in define_repository().get_all_pipelines() }
def test_pipelines(graphql_context): result = execute_dagster_graphql( graphql_context, '{ pipelinesOrError { ... on PipelineConnection { nodes { name } } } }' ) assert not result.errors assert result.data assert {p['name'] for p in result.data['pipelinesOrError']['nodes'] } == {p.name for p in define_repository().get_all_pipelines()}