summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFelix Edel <felix.edel@bmw.de>2021-11-18 12:31:21 +0100
committerFelix Edel <felix.edel@bmw.de>2021-11-26 09:12:21 +0100
commitd9802c9ffc58608d4d2ff2cd2940fff59fd4e518 (patch)
tree3e73d16cf81d8c45eb824a28b8f1f2b5f5e04ddc /tests
parent05c7a241993df0d257c8ebde49a8370c9f0d551a (diff)
downloadzuul-d9802c9ffc58608d4d2ff2cd2940fff59fd4e518.tar.gz
Remove unused _get_reporter_from_connection_name helper method
This method is not used anymore. Change-Id: Ic89e7fcc067fdadce481938f4879d8becf8a0460
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_connection.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/unit/test_connection.py b/tests/unit/test_connection.py
index 83135d543..cabb5d8f5 100644
--- a/tests/unit/test_connection.py
+++ b/tests/unit/test_connection.py
@@ -27,15 +27,6 @@ from tests.base import ZuulTestCase, FIXTURE_DIR, \
BaseTestCase, AnsibleZuulTestCase
-def _get_reporter_from_connection_name(reporters, connection_name):
- # Reporters are placed into lists for each action they may exist in.
- # Search through the given list for the correct reporter by its connection
- # name
- for r in reporters:
- if r.connection.connection_name == connection_name:
- return r
-
-
class TestConnections(ZuulTestCase):
config_file = 'zuul-connections-same-gerrit.conf'
tenant_config_file = 'config/zuul-connections-same-gerrit/main.yaml'