Fix encoding issue in the init subcommand (fix #50).
This commit is contained in:
10
tests/test_cli.py
Normal file
10
tests/test_cli.py
Normal 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)
|
||||
Reference in New Issue
Block a user