diff options
Diffstat (limited to 'tests/frontend')
| -rw-r--r-- | tests/frontend/configurable_warnings.py | 2 | ||||
| -rw-r--r-- | tests/frontend/consistencyerror/plugins/consistencybug.py | 2 | ||||
| -rw-r--r-- | tests/frontend/consistencyerror/plugins/consistencyerror.py | 2 | ||||
| -rw-r--r-- | tests/frontend/logging.py | 2 | ||||
| -rw-r--r-- | tests/frontend/project/sources/fetch_source.py | 1 | ||||
| -rw-r--r-- | tests/frontend/push.py | 1 | ||||
| -rw-r--r-- | tests/frontend/source_checkout.py | 3 | ||||
| -rw-r--r-- | tests/frontend/workspace.py | 3 | ||||
| -rw-r--r-- | tests/frontend/yamlcache.py | 3 |
9 files changed, 7 insertions, 12 deletions
diff --git a/tests/frontend/configurable_warnings.py b/tests/frontend/configurable_warnings.py index 042874529..594c5a8e1 100644 --- a/tests/frontend/configurable_warnings.py +++ b/tests/frontend/configurable_warnings.py @@ -2,7 +2,7 @@ import pytest import os from buildstream.plugin import CoreWarnings -from buildstream._exceptions import ErrorDomain, LoadErrorReason +from buildstream._exceptions import ErrorDomain from buildstream import _yaml from buildstream.plugintestutils.runcli import cli diff --git a/tests/frontend/consistencyerror/plugins/consistencybug.py b/tests/frontend/consistencyerror/plugins/consistencybug.py index 39eeaa852..3c6fb46f3 100644 --- a/tests/frontend/consistencyerror/plugins/consistencybug.py +++ b/tests/frontend/consistencyerror/plugins/consistencybug.py @@ -1,4 +1,4 @@ -from buildstream import Source, SourceError, Consistency +from buildstream import Source class ConsistencyBugSource(Source): diff --git a/tests/frontend/consistencyerror/plugins/consistencyerror.py b/tests/frontend/consistencyerror/plugins/consistencyerror.py index 381e9e8f1..fe2037fc6 100644 --- a/tests/frontend/consistencyerror/plugins/consistencyerror.py +++ b/tests/frontend/consistencyerror/plugins/consistencyerror.py @@ -1,4 +1,4 @@ -from buildstream import Source, SourceError, Consistency +from buildstream import Source, SourceError class ConsistencyErrorSource(Source): diff --git a/tests/frontend/logging.py b/tests/frontend/logging.py index b919a99b6..6ad792dc9 100644 --- a/tests/frontend/logging.py +++ b/tests/frontend/logging.py @@ -1,7 +1,7 @@ import os import pytest import re -from tests.testutils import create_repo, ALL_REPO_KINDS +from tests.testutils import create_repo from buildstream import _yaml from buildstream._exceptions import ErrorDomain diff --git a/tests/frontend/project/sources/fetch_source.py b/tests/frontend/project/sources/fetch_source.py index 10e89960c..d454f69e0 100644 --- a/tests/frontend/project/sources/fetch_source.py +++ b/tests/frontend/project/sources/fetch_source.py @@ -1,5 +1,4 @@ import os -import sys from buildstream import Source, Consistency, SourceError, SourceFetcher diff --git a/tests/frontend/push.py b/tests/frontend/push.py index 107af9d8c..b573a7e41 100644 --- a/tests/frontend/push.py +++ b/tests/frontend/push.py @@ -26,7 +26,6 @@ import pytest from buildstream._exceptions import ErrorDomain from buildstream.plugintestutils import cli from tests.testutils import create_artifact_share, create_element_size, generate_junction, wait_for_cache_granularity -from . import configure_project # Project directory diff --git a/tests/frontend/source_checkout.py b/tests/frontend/source_checkout.py index 1a83ba76e..8466767f9 100644 --- a/tests/frontend/source_checkout.py +++ b/tests/frontend/source_checkout.py @@ -1,12 +1,11 @@ import os import pytest import tarfile -from pathlib import Path from buildstream.plugintestutils import cli from buildstream import utils, _yaml -from buildstream._exceptions import ErrorDomain, LoadErrorReason +from buildstream._exceptions import ErrorDomain # Project directory DATA_DIR = os.path.join( diff --git a/tests/frontend/workspace.py b/tests/frontend/workspace.py index 722512d6d..0e834912c 100644 --- a/tests/frontend/workspace.py +++ b/tests/frontend/workspace.py @@ -29,13 +29,12 @@ import stat import pytest import shutil import subprocess -from ruamel.yaml.comments import CommentedSet 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._exceptions import ErrorDomain, LoadErrorReason from buildstream._workspaces import BST_WORKSPACE_FORMAT_VERSION repo_kinds = [(kind) for kind in ALL_REPO_KINDS] diff --git a/tests/frontend/yamlcache.py b/tests/frontend/yamlcache.py index 99b5d71c3..81514117e 100644 --- a/tests/frontend/yamlcache.py +++ b/tests/frontend/yamlcache.py @@ -1,10 +1,9 @@ import os import pytest -import hashlib import tempfile from ruamel import yaml -from tests.testutils import generate_junction, create_element_size, create_repo +from tests.testutils import generate_junction, create_element_size from buildstream.plugintestutils import cli from buildstream import _yaml from buildstream._yamlcache import YamlCache |
