<reponame>petercb/aggravator
import aggravator
import os.path
from click.testing import CliRunner

def test_createlinks():
    runner = CliRunner()
    conf_file = os.path.abspath('example/config.yml')
    with runner.isolated_filesystem():
        result = runner.invoke(aggravator.cli, [
            '--uri=' + conf_file,
            '--createlinks=.'
        ])
        assert result.exit_code == 0
        assert os.path.islink('dev')
        assert os.path.islink('prod')

import aggravator
import os.path
from click.testing import CliRunner

def test_createlinks():
    runner = CliRunner()
    conf_file = os.path.abspath('example/config.yml')
    with runner.isolated_filesystem():
        result = runner.invoke(aggravator.cli, [
            '--uri=' + conf_file,
            '--createlinks=.'
        ])
        assert result.exit_code == 0
        assert os.path.islink('dev')
        assert os.path.islink('prod')