def do_publish_create_republish(config):
"""Test if creating republishes works."""
with testfixtures.LogCapture() as l:
do_publish_create(config)
found = False
for rec in l.records:
if rec.levelname == "CRITICAL":
if "has been deferred" in rec.msg:
found = True
assert found
args = [
'-c',
config,
'publish',
'create',
]
main(args)
state = SystemStateReader()
state.read()
assert 'fakerepo01-stable main' in state.publishes
评论列表
文章目录