Skip to content

Commit

Permalink
expand checks
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsteers committed Mar 27, 2024
1 parent 078dcea commit 753ec4a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/integration_tests/test_all_cache_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,16 @@ def test_faker_read(

# These numbers expect only 'users' stream selected:

assert progress_mock.log_records_read.call_count == configured_count
# TODO: This 👆 is a bug. Count should be == configured count. Diff is non-record messages.

assert progress_mock.total_records_read == configured_count
assert progress_mock.total_records_written == configured_count
assert progress_mock.log_records_read.call_count >= configured_count
assert progress_mock.reset.call_count == 1
assert progress_mock.log_batch_written.call_count == 1
assert progress_mock.total_batches_written == 1
assert progress_mock.log_batches_finalizing.call_count == 1
assert progress_mock.log_batches_finalized.call_count == 1
assert progress_mock.total_batches_finalized == 1
assert progress_mock.finalized_stream_names == {"users"}
assert progress_mock.log_stream_finalized.call_count == 1
assert progress_mock.log_success.call_count == 1

Expand Down

0 comments on commit 753ec4a

Please sign in to comment.