diff options
author | Phil Dawson <phil.dawson@codethink.co.uk> | 2019-03-25 18:30:01 +0000 |
---|---|---|
committer | Phil Dawson <phil.dawson@codethink.co.uk> | 2019-04-12 16:06:19 +0100 |
commit | ec0f0757b4b06c0c3055c2dd1c5e6a1052ce05d5 (patch) | |
tree | 6e045d4601eb2e92c3901997a327551503a3814d /tests/sourcecache | |
parent | 92c9a04747a9773c0036578db9cb3fa9acb12247 (diff) | |
download | buildstream-ec0f0757b4b06c0c3055c2dd1c5e6a1052ce05d5.tar.gz |
testutils: move repo.py into buildstream.plugintestutils
This needs to be exposed as part of the plugin author facing API so
that plugin authors can define custom repo types which will can be
passed to the set of tests which iterate over multiple source types.
Part of the work towards #944
Diffstat (limited to 'tests/sourcecache')
-rw-r--r-- | tests/sourcecache/fetch.py | 4 | ||||
-rw-r--r-- | tests/sourcecache/push.py | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/sourcecache/fetch.py b/tests/sourcecache/fetch.py index 86d2138c0..7f82388ab 100644 --- a/tests/sourcecache/fetch.py +++ b/tests/sourcecache/fetch.py @@ -28,8 +28,8 @@ from buildstream._context import Context from buildstream._project import Project from buildstream import _yaml from buildstream.plugintestutils import cli # pylint: disable=unused-import - -from tests.testutils import create_artifact_share, create_repo +from buildstream.plugintestutils import create_repo +from tests.testutils import create_artifact_share DATA_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "project") diff --git a/tests/sourcecache/push.py b/tests/sourcecache/push.py index f692136bb..825d2614e 100644 --- a/tests/sourcecache/push.py +++ b/tests/sourcecache/push.py @@ -28,8 +28,9 @@ from buildstream._exceptions import ErrorDomain from buildstream._project import Project from buildstream import _yaml from buildstream.plugintestutils import cli # pylint: disable=unused-import +from buildstream.plugintestutils import create_repo -from tests.testutils import create_artifact_share, create_repo +from tests.testutils import create_artifact_share DATA_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "project") |