diff --git a/tests/test_misc.py b/tests/test_misc.py index 559bd9971f9976011db37587db501ee4db0e2210..c054946f0985d28589e4dddf7b43c2598198d7c0 100644 --- a/tests/test_misc.py +++ b/tests/test_misc.py @@ -224,9 +224,16 @@ def test_annotation(): assert rec.id == ann.id +@mark.skipif( + admin.get_server_property("TRANSACTION_BENCHMARK_ENABLED") != "TRUE", + reason="Needs transaction benchmarks to be enabled in the server." +) def test_info(): assert admin.get_server_property( - "TRANSACTION_BENCHMARK_ENABLED") == "TRUE", "Please activate the transaction benchmark with the server option TRANSACTION_BENCHMARK_ENABLED=TRUE (Restart of the server needed)" + "TRANSACTION_BENCHMARK_ENABLED") == "TRUE",\ + "Please activate the transaction benchmark with the server option "\ + "TRANSACTION_BENCHMARK_ENABLED=TRUE (Restart of the server needed)" + i = Info() assert (i.messages["Flags"]) is not None assert (i.messages["Counts"]) is not None