From 213d9072b684d2dff78d8b4f1c7cfa9d6335b0d0 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Wed, 8 Nov 2017 20:40:08 +0900 Subject: Refactor: Move context.py -> _context.py Consequently: o Changed Plugin.get_context() to a private Plugin._get_context() accessor. o Updated anything which imports Context to do so from private _context module o Updated docs to exclude the now private Context --- tests/context/context.py | 2 +- tests/pipeline/load.py | 3 ++- tests/plugins/pipeline.py | 3 ++- tests/project/plugins.py | 3 ++- tests/project/project.py | 2 +- tests/variables/variables.py | 3 ++- 6 files changed, 10 insertions(+), 6 deletions(-) (limited to 'tests') diff --git a/tests/context/context.py b/tests/context/context.py index be0dd8a55..0db589a1a 100644 --- a/tests/context/context.py +++ b/tests/context/context.py @@ -1,7 +1,7 @@ import os import pytest -from buildstream import Context +from buildstream._context import Context from buildstream._exceptions import LoadError, LoadErrorReason from tests.testutils.site import HAVE_ROOT diff --git a/tests/pipeline/load.py b/tests/pipeline/load.py index a0b6d7ae3..7adcd0f1e 100644 --- a/tests/pipeline/load.py +++ b/tests/pipeline/load.py @@ -1,7 +1,8 @@ import os import pytest -from buildstream import Context, Scope +from buildstream import Scope +from buildstream._context import Context from buildstream._project import Project from buildstream._pipeline import Pipeline from buildstream._platform import Platform diff --git a/tests/plugins/pipeline.py b/tests/plugins/pipeline.py index 6fac82b89..5f1a85e24 100644 --- a/tests/plugins/pipeline.py +++ b/tests/plugins/pipeline.py @@ -1,7 +1,8 @@ import os import pytest -from buildstream import Context, Scope +from buildstream import Scope +from buildstream._context import Context from buildstream._project import Project from buildstream._exceptions import PluginError from buildstream._pipeline import Pipeline diff --git a/tests/project/plugins.py b/tests/project/plugins.py index 424548082..5f7517278 100644 --- a/tests/project/plugins.py +++ b/tests/project/plugins.py @@ -1,7 +1,8 @@ import os import pytest -from buildstream import Context, Scope +from buildstream import Scope +from buildstream._context import Context from buildstream._project import Project from buildstream._pipeline import Pipeline from buildstream._platform import Platform diff --git a/tests/project/project.py b/tests/project/project.py index 32a264c6d..3a1484309 100644 --- a/tests/project/project.py +++ b/tests/project/project.py @@ -1,7 +1,7 @@ import os import pytest -from buildstream import Context +from buildstream._context import Context from buildstream._project import Project from buildstream._exceptions import LoadError, LoadErrorReason diff --git a/tests/variables/variables.py b/tests/variables/variables.py index 51af7e27b..7562857f9 100644 --- a/tests/variables/variables.py +++ b/tests/variables/variables.py @@ -1,7 +1,8 @@ import os import pytest -from buildstream import Context, BuildElement +from buildstream import BuildElement +from buildstream._context import Context from buildstream._project import Project from buildstream._pipeline import Pipeline from buildstream._platform import Platform -- cgit v1.2.1