summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/conftest.py')
-rwxr-xr-xtests/conftest.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index d79ad40b0..30888a3f7 100755
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -21,10 +21,8 @@
#
import os
-import pkg_resources
import pytest
-from buildstream.testing import register_repo_kind, sourcetests_collection_hook
from buildstream.testing._fixtures import ( # pylint: disable=unused-import
default_thread_number,
reset_global_node_state,
@@ -33,12 +31,6 @@ from buildstream.testing._fixtures import ( # pylint: disable=unused-import
from buildstream.testing.integration import integration_cache # pylint: disable=unused-import
-from tests.testutils.repo.git import Git
-from tests.testutils.repo.bzr import Bzr
-from tests.testutils.repo.tar import Tar
-from tests.testutils.repo.zip import Zip
-
-
#
# This file is loaded by pytest, we use it to add a custom
# `--integration` option to our test suite, and to install
@@ -130,27 +122,6 @@ def remote_services(request):
#################################################
-# Setup for templated source tests #
-#################################################
-register_repo_kind("git", Git, None)
-register_repo_kind("bzr", Bzr, None)
-register_repo_kind("tar", Tar, None)
-register_repo_kind("zip", Zip, None)
-
-
-# This hook enables pytest to collect the templated source tests from
-# buildstream.testing
-def pytest_sessionstart(session):
- if session.config.getvalue("plugins"):
- # Enable all plugins that implement the 'buildstream.tests.source_plugins' hook
- for entrypoint in pkg_resources.iter_entry_points("buildstream.tests.source_plugins"):
- module = entrypoint.load()
- module.register_sources()
-
- sourcetests_collection_hook(session)
-
-
-#################################################
# Isolated environment #
#################################################
@pytest.fixture(scope="session", autouse=True)