From f7f89146e37c009a164e0e81de9b6b23d4874ffc Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Wed, 30 Dec 2020 10:34:44 -0800 Subject: [PATCH] tests: properly mock bdb in db_stat test --- tests/test_dcrpm.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_dcrpm.py b/tests/test_dcrpm.py index aad5ca7..7e9d69e 100644 --- a/tests/test_dcrpm.py +++ b/tests/test_dcrpm.py @@ -89,6 +89,11 @@ def test_run_recovery_dry_run(self): def test_db_stat_forensic(self): # type: () -> None self.mock_callable(pidutil, "send_signals").and_assert_not_called() + ( + self.mock_callable(self.rpmutil, "get_db_backend") + .to_return_value("bdb") + .and_assert_called() + ) ( self.mock_callable(self.rpmutil, "db_stat") .to_return_value(None)