diff options
author | BonfaceKilz | 2021-06-07 19:44:31 +0300 |
---|---|---|
committer | zsloan | 2021-06-18 22:08:04 +0000 |
commit | b05c273eae3f19387ab0a6afea4277afd52a9378 (patch) | |
tree | b2e983dfab4293153216b44a7c8d16a379b12174 /tests/unit/db | |
parent | bb55cf948974d85fb31d2f424f7ee94f7ab5e3d6 (diff) | |
download | genenetwork3-b05c273eae3f19387ab0a6afea4277afd52a9378.tar.gz |
db: test_db: Add extra variable in test data for "id"
Diffstat (limited to 'tests/unit/db')
-rw-r--r-- | tests/unit/db/test_db.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/tests/unit/db/test_db.py b/tests/unit/db/test_db.py index 485678f..520e781 100644 --- a/tests/unit/db/test_db.py +++ b/tests/unit/db/test_db.py @@ -74,15 +74,14 @@ class TestCrudMethods(TestCase): db_mock = mock.MagicMock() with db_mock.cursor() as cursor: test_data = ( - 35, "Rob", ('{"pages": ' - '{"old": "5099-5109", ' - '"new": "5099-5110"}, ' - '"month": {"old": "July", ' - '"new": "June"}, ' - '"year": {"old": "2001", ' - '"new": "2002"}}'), - "2021-06-04 09:01:05" - ) + 1, 35, "Rob", ('{"pages": ' + '{"old": "5099-5109", ' + '"new": "5099-5110"}, ' + '"month": {"old": "July", ' + '"new": "June"}, ' + '"year": {"old": "2001", ' + '"new": "2002"}}'), + "2021-06-04 09:01:05") cursor.fetchall.return_value = (test_data,) metadata = list(fetchall(db_mock, "metadata_audit", |