Skip to content

Commit 16a4546

Browse files
committed
fix up tests
1 parent cc0b297 commit 16a4546

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

python_modules/dagster-graphql/dagster_graphql/schema/roots/mutation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,6 @@ class GrapheneReexecuteBackfillMutation(graphene.Mutation):
373373
Output = graphene.NonNull(GrapheneLaunchBackfillResult)
374374

375375
class Arguments:
376-
# backfillId = graphene.NonNull(graphene.String)
377376
reexecutionParams = graphene.Argument(GrapheneReexecutionParams)
378377

379378
class Meta:
@@ -384,7 +383,7 @@ class Meta:
384383
def mutate(
385384
self,
386385
graphene_info: ResolveInfo,
387-
reexecutionParams: Optional[GrapheneReexecutionParams] = None,
386+
reexecutionParams: GrapheneReexecutionParams,
388387
):
389388
return retry_partition_backfill(
390389
graphene_info,

python_modules/dagster-graphql/dagster_graphql_tests/graphql/test_partition_backfill.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1714,7 +1714,7 @@ def test_reexecute_successful_asset_backfill(self, graphql_context):
17141714
assert result.data
17151715
assert result.data["reexecutePartitionBackfill"]["__typename"] == "PythonError"
17161716
assert (
1717-
"Cannot re-execute an asset backfill that has no missing materializations"
1717+
"Cannot re-execute from failure an asset backfill that has no missing materializations"
17181718
in result.data["reexecutePartitionBackfill"]["message"]
17191719
)
17201720

@@ -1858,7 +1858,7 @@ def test_reexecute_asset_backfill_still_in_progress(self, graphql_context):
18581858
retried_backfill = graphql_context.instance.get_backfill(retry_backfill_id)
18591859

18601860
assert (
1861-
first_backfill.asset_backfill_data.failed_and_downstream_subset
1861+
first_backfill.asset_backfill_data.target_subset
18621862
== retried_backfill.asset_backfill_data.target_subset
18631863
)
18641864
assert retried_backfill.tags.get(PARENT_BACKFILL_ID_TAG) == backfill_id
@@ -1964,7 +1964,7 @@ def test_reexecute_asset_backfill_twice(self, graphql_context):
19641964
graphql_context,
19651965
RETRY_BACKFILL_MUTATION,
19661966
variables={
1967-
"reexecutionParams": {"parentRunId": backfill_id, "strategy": "FROM_FAILURE"},
1967+
"reexecutionParams": {"parentRunId": retry_backfill_id, "strategy": "FROM_FAILURE"},
19681968
},
19691969
)
19701970

@@ -2078,7 +2078,7 @@ def test_retry_job_backfill(self, graphql_context):
20782078
assert result.data["partitionBackfillOrError"]["status"] == "REQUESTED"
20792079
assert result.data["partitionBackfillOrError"]["numCancelable"] == 2
20802080
assert len(result.data["partitionBackfillOrError"]["partitionNames"]) == 2
2081-
assert result.data["partitionBackfillOrError"]["fromFailure"]
2081+
assert not result.data["partitionBackfillOrError"]["fromFailure"]
20822082

20832083
def test_retry_in_progress_job_backfill(self, graphql_context):
20842084
repository_selector = infer_repository_selector(graphql_context)

0 commit comments

Comments
 (0)