Commit a7fbd900 authored by Tristan Van Berkom's avatar Tristan Van Berkom

tests: Renaming some tests in tests/format/project.py

Remove some redundancy from the test lines.
parent de881c2a
......@@ -140,7 +140,7 @@ def test_local_plugin_not_directory(cli, datafiles):
@pytest.mark.datafiles(DATA_DIR)
def test_project_plugin_load_allowed(cli, datafiles):
def test_plugin_load_allowed(cli, datafiles):
project = os.path.join(datafiles.dirname, datafiles.basename, 'plugin-allowed')
result = cli.run(project=project, silent=True, args=[
'show', 'element.bst'])
......@@ -148,7 +148,7 @@ def test_project_plugin_load_allowed(cli, datafiles):
@pytest.mark.datafiles(DATA_DIR)
def test_project_plugin_load_forbidden(cli, datafiles):
def test_plugin_load_forbidden(cli, datafiles):
project = os.path.join(datafiles.dirname, datafiles.basename, 'plugin-forbidden')
result = cli.run(project=project, silent=True, args=[
'show', 'element.bst'])
......@@ -157,7 +157,7 @@ def test_project_plugin_load_forbidden(cli, datafiles):
@pytest.mark.datafiles(DATA_DIR)
@pytest.mark.parametrize("ref_storage", [('inline'), ('project.refs')])
def test_project_plugin_no_load_ref(cli, datafiles, ref_storage):
def test_plugin_no_load_ref(cli, datafiles, ref_storage):
project = os.path.join(datafiles.dirname, datafiles.basename, 'plugin-no-load-ref')
# Generate project with access to the noloadref plugin and project.refs enabled
......@@ -188,14 +188,14 @@ def test_project_plugin_no_load_ref(cli, datafiles, ref_storage):
@pytest.mark.datafiles(DATA_DIR)
def test_project_plugin_preflight_error(cli, datafiles, tmpdir):
def test_plugin_preflight_error(cli, datafiles, tmpdir):
project = os.path.join(datafiles.dirname, datafiles.basename, 'plugin-preflight-error')
result = cli.run(project=project, args=['source', 'fetch', 'error.bst'])
result.assert_main_error(ErrorDomain.SOURCE, "the-preflight-error")
@pytest.mark.datafiles(DATA_DIR)
def test_project_conf_duplicate_plugins(cli, datafiles):
def test_duplicate_plugins(cli, datafiles):
project = os.path.join(datafiles.dirname, datafiles.basename, 'duplicate-plugins')
result = cli.run(project=project, silent=True, args=[
'show', 'element.bst'])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment