Skipping kiwix restart during testing before flagging.

This commit is contained in:
Roland 2023-07-11 17:15:44 -06:00
parent 6f94dac2e8
commit 551aa50bce
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -477,13 +477,13 @@ def flag_outdated_zim_files():
async def restart_kiwix():
if PYTEST:
logger.warning('Unable to restart Kiwix serve because we are testing')
return
if DOCKERIZED:
logger.warning('Setting Kiwix restart because this is in a docker container')
flags.kiwix_restart.set()
return
if PYTEST:
logger.warning('Unable to restart Kiwix serve because we are testing')
return
logger.info('Restarting Kiwix serve')