Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
buildstream
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
BuildStream
buildstream
Commits
1181c0f9
Commit
1181c0f9
authored
6 years ago
by
Tristan Van Berkom
Browse files
Options
Downloads
Patches
Plain Diff
tests: Renaming some tests in tests/format/project.py
Remove some redundancy from the test lines.
parent
b4dfe0d1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/format/project.py
+5
-5
5 additions, 5 deletions
tests/format/project.py
with
5 additions
and
5 deletions
tests/format/project.py
+
5
−
5
View file @
1181c0f9
...
...
@@ -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
'
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment