Skip to content

Commit

Permalink
fix bug in sync
Browse files Browse the repository at this point in the history
  • Loading branch information
dougbrn committed Oct 6, 2023
1 parent 519c22a commit de376ee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/tape_tests/test_ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,11 +422,14 @@ def test_sync_tables(parquet_ensemble):
parquet_ensemble.dropna(table="source")
assert parquet_ensemble._source_dirty # Dropna should set the source dirty flag

# Drop a whole object to test that the object is dropped in the object table
parquet_ensemble.query(f"{parquet_ensemble._id_col} != 88472935274829959", table="source")

parquet_ensemble._sync_tables()

# both tables should have the expected number of rows after a sync
assert len(parquet_ensemble.compute("object")) == 5
assert len(parquet_ensemble.compute("source")) == 1562
assert len(parquet_ensemble.compute("object")) == 4
assert len(parquet_ensemble.compute("source")) == 1063

# dirty flags should be unset after sync
assert not parquet_ensemble._object_dirty
Expand Down

0 comments on commit de376ee

Please sign in to comment.