From f92c4d4e58e7d81f464aad31e2f7471bd9319fb2 Mon Sep 17 00:00:00 2001 From: Alistair Coles Date: Thu, 9 Feb 2023 14:24:29 +0000 Subject: Fix test assertion Change-Id: I40e5a6a7a068391ebf257e8963d1524ddb965654 --- test/unit/common/test_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/common/test_db.py b/test/unit/common/test_db.py index a193b876f..c4d94ff5a 100644 --- a/test/unit/common/test_db.py +++ b/test/unit/common/test_db.py @@ -1591,7 +1591,7 @@ class TestDatabaseBroker(TestDbBase): fd.write(b'x' * 100000) with patch.object(broker, '_commit_puts') as mock_commit_puts: broker.put_record('direct') - mock_commit_puts.called_once_with(['direct']) + mock_commit_puts.assert_called_once_with(['direct']) # records shouldn't be put to brokers with skip_commits True because # they cannot be accepted if the pending file is full -- cgit v1.2.1