diff options
author | Phil Dawson <phil.dawson@codethink.co.uk> | 2019-01-16 14:03:41 +0000 |
---|---|---|
committer | Phil Dawson <phil.dawson@codethink.co.uk> | 2019-02-08 14:27:54 +0000 |
commit | b4d4c4f59c12c9b500f83d8cd4381418e1124f67 (patch) | |
tree | ff2b7c958ba18ab3a018d1917a7b9369bc82b8a9 /tests/frontend/workspace.py | |
parent | e61f471376d6d3ef2691abf3eee75d30999e7f05 (diff) | |
download | buildstream-b4d4c4f59c12c9b500f83d8cd4381418e1124f67.tar.gz |
Expose basic api for testing external plugins.phil/plugin-testing-api
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
Diffstat (limited to 'tests/frontend/workspace.py')
-rw-r--r-- | tests/frontend/workspace.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/frontend/workspace.py b/tests/frontend/workspace.py index 6d4270e11..f6d12e8bf 100644 --- a/tests/frontend/workspace.py +++ b/tests/frontend/workspace.py @@ -30,9 +30,10 @@ import pytest import shutil import subprocess from ruamel.yaml.comments import CommentedSet -from tests.testutils import cli, create_repo, ALL_REPO_KINDS, wait_for_cache_granularity +from tests.testutils import create_repo, ALL_REPO_KINDS, wait_for_cache_granularity from tests.testutils import create_artifact_share, create_element_size +from buildstream.plugintestutils import cli from buildstream import _yaml from buildstream._exceptions import ErrorDomain, LoadError, LoadErrorReason from buildstream._workspaces import BST_WORKSPACE_FORMAT_VERSION |