-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
write config settings to crsql_master table to persist some of them
- Loading branch information
Showing
5 changed files
with
150 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from crsql_correctness import connect, close, get_site_id | ||
import pprint | ||
|
||
def test_config_merge_equal_values(): | ||
db = connect(":memory:") | ||
value = db.execute("SELECT crsql_config_set('merge-equal-values', 1);").fetchone() | ||
assert (value == (1,)) | ||
db.commit() | ||
|
||
value = db.execute("SELECT value FROM crsql_master WHERE key = 'config.merge-equal-values'").fetchone() | ||
assert (value == (1,)) | ||
|
||
value = db.execute("SELECT crsql_config_get('merge-equal-values');").fetchone() | ||
assert (value == (1,)) |