Skip to content

Commit

Permalink
fix an assertion on a test
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjlai committed Dec 13, 2024
1 parent ec98aa3 commit 588fdb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

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

def update_jobs_status(self, jobs: Set[AsyncJob]) -> None:
for job in jobs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,7 @@ def test_stream_slices_with_parent_slicer():
attempts_per_job = list(partition.jobs)
assert len(attempts_per_job) == 1
assert attempts_per_job[0].api_job_id() == "a_job_id"
assert attempts_per_job[0].job_parameters() == StreamSlice(partition={}, cursor_slice={})
assert attempts_per_job[0].job_parameters() == StreamSlice(
partition={"parent_id": str(i)}, cursor_slice={}
)
assert attempts_per_job[0].status() == AsyncJobStatus.COMPLETED

0 comments on commit 588fdb7

Please sign in to comment.