mirror of
https://github.com/chatmail/relay.git
synced 2026-05-21 13:28:05 +00:00
tests: fix output capture
This commit is contained in:
@@ -46,10 +46,10 @@ def init_cmd(args, out):
|
|||||||
inipath = args.inipath
|
inipath = args.inipath
|
||||||
if args.inipath.exists():
|
if args.inipath.exists():
|
||||||
if not args.recreate_ini:
|
if not args.recreate_ini:
|
||||||
out.green(f"[WARNING] Path exists, not modifying: {inipath}")
|
print(f"[WARNING] Path exists, not modifying: {inipath}")
|
||||||
return 1
|
return 1
|
||||||
else:
|
else:
|
||||||
out.yellow(f"[WARNING] Force argument was provided, deleting config file: {inipath}")
|
print(f"[WARNING] Force argument was provided, deleting config file: {inipath}")
|
||||||
inipath.unlink()
|
inipath.unlink()
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user