Exemplo n.º 1
0
def test_parse_output():
    root = os.path.abspath('recipes')
    argv = '{0} {1}'.format(root, 'test_recs.py').split()
    args = create_args_parser().parse_args(argv)
    assert args.recipes_root == root
    assert args.output == 'test_recs.py'
Exemplo n.º 2
0
def test_parse_recipes_root():
    root = os.path.abspath('recipes')
    args = create_args_parser().parse_args([root])
    assert args.recipes_root == root
    assert args.output == os.path.join('tests', 'test_recipes.py')