summaryrefslogtreecommitdiff
path: root/tests/plugins
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-11-06 20:24:29 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-11-06 20:31:31 +0900
commita97c0fd86a17db72edb26f91bab9364da533fd21 (patch)
tree0c8efc0154e9533429a06d9ffd61b4b64a9fa640 /tests/plugins
parent79f9f065d7f22039ec189d59f557bbe00123eacd (diff)
downloadbuildstream-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/plugins')
-rw-r--r--tests/plugins/pipeline.py3
1 files changed, 2 insertions, 1 deletions
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