def test_publish_update_rotating():
"""Test if update rotating publishes works."""
with test.clean_and_config(os.path.join(
_test_base,
b"publish-current.yml",
)) as (tyml, config):
do_publish_create_rotating(config)
with freezegun.freeze_time("2012-10-11 10:10:10"):
args = [
'-c',
config,
'publish',
'update',
]
main(args)
state = SystemStateReader()
state.read()
expect = {
u'fake/current stable': set([u'fake-current']),
u'fakerepo01/current stable': set([u'fakerepo01-current']),
u'fakerepo02/current stable': set([u'fakerepo02-current'])
}
assert expect == state.publish_map
评论列表
文章目录