From b4d4c4f59c12c9b500f83d8cd4381418e1124f67 Mon Sep 17 00:00:00 2001 From: Phil Dawson Date: Wed, 16 Jan 2019 14:03:41 +0000 Subject: Expose basic api for testing external plugins. We want external plugins to be able to make use of the core testing utils. This commit exposes the basic utilities which are currently in use in bst-external plugins. If necessary, more utilities could be exposed in the future. Moves the following files from tests/testutils/ to buildstream/plugintestingutils/: o runcli.py o integration.py As part of this, this commit makes the following changes to runcli.py and integration.py: o runcli.py: Fix linting errors o runcli.py: Add user facing documentation o Integration.py: Add user facing documentation --- tests/sources/local.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/sources/local.py') diff --git a/tests/sources/local.py b/tests/sources/local.py index 4a0851d72..f7c1f4bd2 100644 --- a/tests/sources/local.py +++ b/tests/sources/local.py @@ -2,7 +2,8 @@ import os import pytest from buildstream._exceptions import ErrorDomain, LoadErrorReason -from tests.testutils import cli, filetypegenerator +from buildstream.plugintestutils import cli +from tests.testutils import filetypegenerator DATA_DIR = os.path.join( os.path.dirname(os.path.realpath(__file__)), -- cgit v1.2.1