Skip to content
Snippets Groups Projects
Commit f1b28c03 authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

Merge branch 'f-skip-benchmark' into 'dev'

MAINT: skip benchmark test if server variable is disabled

See merge request !23
parents d31c447e 160b11f3
Branches
Tags
1 merge request!23MAINT: skip benchmark test if server variable is disabled
Pipeline #15646 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment