Skip to content

Commit 588fdb7

Browse files
committed
fix an assertion on a test
1 parent ec98aa3 commit 588fdb7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

unit_tests/sources/declarative/async_job/test_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
class MockAsyncJobRepository(AsyncJobRepository):
4040
def start(self, stream_slice: StreamSlice) -> AsyncJob:
41-
return AsyncJob("a_job_id", StreamSlice(partition={}, cursor_slice={}))
41+
return AsyncJob("a_job_id", stream_slice)
4242

4343
def update_jobs_status(self, jobs: Set[AsyncJob]) -> None:
4444
for job in jobs:

unit_tests/sources/declarative/partition_routers/test_async_job_partition_router.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,7 @@ def test_stream_slices_with_parent_slicer():
7878
attempts_per_job = list(partition.jobs)
7979
assert len(attempts_per_job) == 1
8080
assert attempts_per_job[0].api_job_id() == "a_job_id"
81-
assert attempts_per_job[0].job_parameters() == StreamSlice(partition={}, cursor_slice={})
81+
assert attempts_per_job[0].job_parameters() == StreamSlice(
82+
partition={"parent_id": str(i)}, cursor_slice={}
83+
)
8284
assert attempts_per_job[0].status() == AsyncJobStatus.COMPLETED

0 commit comments

Comments
 (0)