Rename db.loadJson to db.updateJson
This commit is contained in:
parent
90c9adc8dc
commit
38d330da1a
2 changed files with 6 additions and 6 deletions
|
@ -59,7 +59,7 @@ class TestDb:
|
|||
{"test_id": 1, "titlelike": "Test%"}
|
||||
).fetchone()["num"] == 1
|
||||
|
||||
def testLoadJson(self, db):
|
||||
def testUpdateJson(self, db):
|
||||
f = StringIO.StringIO()
|
||||
f.write("""
|
||||
{
|
||||
|
@ -69,6 +69,6 @@ class TestDb:
|
|||
}
|
||||
""")
|
||||
f.seek(0)
|
||||
assert db.loadJson(db.db_dir + "data.json", f) == True
|
||||
assert db.updateJson(db.db_dir + "data.json", f) == True
|
||||
assert db.execute("SELECT COUNT(*) AS num FROM test_importfilter").fetchone()["num"] == 1
|
||||
assert db.execute("SELECT COUNT(*) AS num FROM test").fetchone()["num"] == 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue