Don't pass a 'config' argument to the controller, only Oragono had it.

Instead, annotate tests with the optional features they may need from the IRCd.
This commit is contained in:
2021-02-15 23:03:11 +01:00
parent de49571b1e
commit 9b2a6a063c
7 changed files with 43 additions and 23 deletions

View File

@ -13,13 +13,14 @@ class _BaseController:
A software controller is an object that handles configuring and running
a process (eg. a server or a client), as well as sending it instructions
that are not part of the IRC specification."""
pass
def __init__(self, test_config):
self.test_config = test_config
class DirectoryBasedController(_BaseController):
"""Helper for controllers whose software configuration is based on an
arbitrary directory."""
def __init__(self):
super().__init__()
def __init__(self, test_config):
super().__init__(test_config)
self.directory = None
self.proc = None