diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-11-06 20:24:29 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-11-06 20:31:31 +0900 |
commit | a97c0fd86a17db72edb26f91bab9364da533fd21 (patch) | |
tree | 0c8efc0154e9533429a06d9ffd61b4b64a9fa640 /tests | |
parent | 79f9f065d7f22039ec189d59f557bbe00123eacd (diff) | |
download | buildstream-a97c0fd86a17db72edb26f91bab9364da533fd21.tar.gz |
refactoring: Made Project option private
This required adding two new APIs to make up for it on the Source
o get_project_directory()
Added here because elements should not be accessing external
resources, Sources needed for local files and GPG keys and such
o translate_url()
Used by sources to mish-mash the project aliases and create
real urls.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pipeline/load.py | 3 | ||||
-rw-r--r-- | tests/plugins/pipeline.py | 3 | ||||
-rw-r--r-- | tests/project/plugins.py | 3 | ||||
-rw-r--r-- | tests/project/project.py | 3 | ||||
-rw-r--r-- | tests/variables/variables.py | 3 |
5 files changed, 10 insertions, 5 deletions
diff --git a/tests/pipeline/load.py b/tests/pipeline/load.py index 1d5319c45..a0b6d7ae3 100644 --- a/tests/pipeline/load.py +++ b/tests/pipeline/load.py @@ -1,7 +1,8 @@ import os import pytest -from buildstream import Context, Project, Scope +from buildstream import Context, Scope +from buildstream._project import Project from buildstream._pipeline import Pipeline from buildstream._platform import Platform diff --git a/tests/plugins/pipeline.py b/tests/plugins/pipeline.py index f5c9a0c8f..6fac82b89 100644 --- a/tests/plugins/pipeline.py +++ b/tests/plugins/pipeline.py @@ -1,7 +1,8 @@ import os import pytest -from buildstream import Context, Project, Scope +from buildstream import Context, Scope +from buildstream._project import Project from buildstream._exceptions import PluginError from buildstream._pipeline import Pipeline from buildstream._platform import Platform diff --git a/tests/project/plugins.py b/tests/project/plugins.py index 785b42418..424548082 100644 --- a/tests/project/plugins.py +++ b/tests/project/plugins.py @@ -1,7 +1,8 @@ import os import pytest -from buildstream import Context, Project, Scope +from buildstream import Context, Scope +from buildstream._project import Project from buildstream._pipeline import Pipeline from buildstream._platform import Platform diff --git a/tests/project/project.py b/tests/project/project.py index 430e15b11..32a264c6d 100644 --- a/tests/project/project.py +++ b/tests/project/project.py @@ -1,7 +1,8 @@ import os import pytest -from buildstream import Project, Context +from buildstream import Context +from buildstream._project import Project from buildstream._exceptions import LoadError, LoadErrorReason DATA_DIR = os.path.join( diff --git a/tests/variables/variables.py b/tests/variables/variables.py index 8f9fd2750..51af7e27b 100644 --- a/tests/variables/variables.py +++ b/tests/variables/variables.py @@ -1,7 +1,8 @@ import os import pytest -from buildstream import Context, Project, BuildElement +from buildstream import Context, BuildElement +from buildstream._project import Project from buildstream._pipeline import Pipeline from buildstream._platform import Platform |