Read about our upcoming Code of Conduct on this issue

This instance will be upgraded to Heptapod 0.28.0 on 2022-01-18 at 14:00 UTC+1 (a few minutes of down time)

Commit 738ad8ee authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

Testing production servers: nicer error if group owner not specified

This is better than an obscure unexpected `None` down the road.
Maybe there's even a way to have pytest issue the proper `parser.error`
call, but this will be good enough for the time being.

branch : stable
parent 3162debaf0f1
......@@ -232,9 +232,16 @@ def heptapod(pytestconfig):
if active_threads == 1: # we're the first
if pytestconfig.getoption('heptapod_prod_server'):
owner_creds = pytestconfig.getoption(
if owner_creds is None:
raise RuntimeError(
"Production server mode: please specify a Group owner "
"with the --heptapod-prod-group-owner-credentials "
"option (see --help for syntax)")
heptapod = ProductionHeptapod(
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment