Skip to content

Commit

Permalink
Check new crsql version is written to the host db
Browse files Browse the repository at this point in the history
  • Loading branch information
tantaman committed Jun 15, 2023
1 parent 96704b3 commit 9e57f04
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions py/correctness/tests/test_prior_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ def test_can_load_v0_12_0():
assert (rows == [('foo', "'one'", 'b', '2', 1, 1, None, 0),
('bar', '1', 'b', '2', 1, 2, None, 0)])

version = c.execute(
"SELECT value FROM crsql_master WHERE key ='crsqlite_version'").fetchone()
assert (version[0] == 130000)
close(c)


def test_can_load_v0_13_0():
prefix = "./prior-dbs/v0.13.0"
Expand All @@ -24,3 +29,8 @@ def test_can_load_v0_13_0():
('foo', '5', 'b', '6', 1, 2, None, 1),
('foo', '6', 'b', '7', 1, 2, None, 2),
('foo', '8', 'b', '9', 1, 3, None, 0)])

version = c.execute(
"SELECT value FROM crsql_master WHERE key ='crsqlite_version'").fetchone()
assert (version[0] == 130000)
close(c)

0 comments on commit 9e57f04

Please sign in to comment.