diff options
Diffstat (limited to 'tests/variables/variables.py')
-rw-r--r-- | tests/variables/variables.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/variables/variables.py b/tests/variables/variables.py index 8c5db0a19..d6855591e 100644 --- a/tests/variables/variables.py +++ b/tests/variables/variables.py @@ -18,15 +18,15 @@ 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]) def assert_command(datafiles, tmpdir, target, command, expected): basedir = os.path.join(datafiles.dirname, datafiles.basename) pipeline = create_pipeline(tmpdir, basedir, target) - assert(isinstance(pipeline.target, BuildElement)) + assert(isinstance(pipeline.targets[0], BuildElement)) - commands = pipeline.target.commands + commands = pipeline.targets[0].commands assert(commands.get(command) is not None) assert(len(commands[command]) > 0) |