summaryrefslogtreecommitdiff
path: root/tests/project/plugins.py
diff options
context:
space:
mode:
authorTristan Maat <tristan.maat@codethink.co.uk>2017-10-31 15:41:42 +0000
committerTristan Maat <tristan.maat@codethink.co.uk>2017-11-03 13:55:58 +0000
commit36eb53ba9e2466bfe76a8ff32787dd78a650ad79 (patch)
tree2ebd3ffbfdc0a6cbc2eda26e000af01a106b9e6a /tests/project/plugins.py
parent234c1a5772d7130c831b651e5ca222fa67a82fd9 (diff)
downloadbuildstream-36eb53ba9e2466bfe76a8ff32787dd78a650ad79.tar.gz
Adjust tests to new API
Diffstat (limited to 'tests/project/plugins.py')
-rw-r--r--tests/project/plugins.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/project/plugins.py b/tests/project/plugins.py
index 67dc691d7..fd90de9aa 100644
--- a/tests/project/plugins.py
+++ b/tests/project/plugins.py
@@ -19,7 +19,7 @@ def create_pipeline(tmpdir, basedir, target):
context.artifactdir = os.path.join(str(tmpdir), 'artifact')
context._platform = Platform.get_platform()
- return Pipeline(context, project, target)
+ return Pipeline(context, project, [target])
# We've already validated that the plugin system works in
@@ -35,7 +35,7 @@ def test_custom_element(datafiles, tmpdir):
basedir = os.path.join(datafiles.dirname, datafiles.basename)
pipeline = create_pipeline(tmpdir, basedir, 'custom.bst')
- element = pipeline.target
+ element = pipeline.targets[0]
assert(len(element._Element__sources) > 0)
source = element._Element__sources[0]