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'
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')