Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @pytest.mark.datafiles(DATA_DIR)
- def test_directory_as_argument(cli, tmpdir):
- project = str(DATA_DIR)
- project_path = os.path.join(DATA_DIR, 'project.conf')
- result = cli.run(project=project, args=['init', '--project-name', 'foo', DATA_DIR])
- result.assert_success()
- project_conf = _yaml.load(project_path)
- assert _yaml.node_get(project_conf, str, 'name') == 'foo'
- assert _yaml.node_get(project_conf, str, 'format-version') == str(BST_FORMAT_VERSION)
- assert _yaml.node_get(project_conf, str, 'element-path') == 'elements'
Advertisement
Add Comment
Please, Sign In to add comment