Skip to content

Commit eaa4234

Browse files
Test tweaks.
1 parent d5aaff8 commit eaa4234

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tests/test_2400_pool.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ def test_2428_acquire_conn_from_empty_pool(self):
698698
"parameter yet")
699699
def test_2429_soda_metadata_cache(self):
700700
"2429 - test soda_metadata_cache parameter"
701+
self.get_soda_database(minclient=(19, 11))
701702
pool = test_env.get_pool(min=0, max=2, increment=2)
702703
self.assertEqual(pool.soda_metadata_cache, False)
703704
pool = test_env.get_pool(min=0, max=2, increment=2,

tests/test_3400_soda_collection.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -403,16 +403,16 @@ def test_3418_save(self):
403403
soda_db = self.get_soda_database(minclient=(19, 9))
404404
coll = soda_db.createCollection("TestSodaSave")
405405
values_to_save = [
406-
12,
407-
"23",
408-
soda_db.createDocument(45)
406+
dict(name="Jill", age=37),
407+
soda_db.createDocument(dict(name="John", age=7)),
408+
soda_db.createDocument(dict(name="Charles", age=24))
409409
]
410410
for value in values_to_save:
411411
coll.save(value)
412412
self.connection.commit()
413413
fetched_docs = coll.find().getDocuments()
414414
for fetched_doc, expected_doc in zip(fetched_docs, values_to_save):
415-
if isinstance(expected_doc, (int, str)):
415+
if isinstance(expected_doc, dict):
416416
expected_doc = soda_db.createDocument(expected_doc)
417417
self.assertEqual(fetched_doc.getContent(),
418418
expected_doc.getContent())

0 commit comments

Comments
 (0)