diff options
author | BonfaceKilz | 2021-06-07 19:44:31 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-06-07 19:58:44 +0300 |
commit | 3881b50e5394072b8d721b0f84b59bf5de23172d (patch) | |
tree | ed3f8b1babe02d4dfbd805dd63f70672efe4c0a3 /tests | |
parent | a364496e9884e46080844bd3eddb2b52d6ed9164 (diff) | |
download | genenetwork3-3881b50e5394072b8d721b0f84b59bf5de23172d.tar.gz |
db: test_db: Add extra variable in test data for "id"
Diffstat (limited to 'tests')
-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", |