Skip to content

Commit

Permalink
Fix sqlite extract json tests for changes in sqlite 3.45
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Jan 2, 2024
1 parent e0db76f commit 437c4c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,10 +611,10 @@ def test_extract_text_json(self):
self.assertRows((D.extract_json('$.k1') == '"v1"'), ['a', 'c'])
self.assertRows((D.extract_text('k2') == 'v2'), ['b', 'c'])
self.assertRows((D.extract_json('k2') == '"v2"'), ['b', 'c'])
self.assertRows((D.extract_text('x1.y1') == 'z1'), ['a', 'd'])
self.assertRows((D.extract_json('x1.y1') == '"z1"'), ['a', 'd'])
self.assertRows((D.extract_text('l1[1]') == 1), ['e'])
self.assertRows((D.extract_text('l2[1][1]') == 3), ['e'])
self.assertRows((D.extract_text('$.x1.y1') == 'z1'), ['a', 'd'])
self.assertRows((D.extract_json('$.x1.y1') == '"z1"'), ['a', 'd'])
self.assertRows((D.extract_text('$.l1[1]') == 1), ['e'])
self.assertRows((D.extract_text('$.l2[1][1]') == 3), ['e'])
self.assertRows((D.extract_json('x1') == '{"y1":"z1"}'), ['a'])

def test_extract_multiple(self):
Expand Down

0 comments on commit 437c4c2

Please sign in to comment.