Fix encoding issue in the init subcommand (fix #50).

This commit is contained in:
Simon Conseil
2013-12-21 22:27:10 +01:00
parent 1385341b5a
commit 9ddd49be4c
2 changed files with 16 additions and 4 deletions

10
tests/test_cli.py Normal file
View File

@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
import os
from sigal import init
def test_init(tmpdir):
config_file = str(tmpdir.join('sigal.conf.py'))
init(path=config_file)
assert os.path.isfile(config_file)