Merge "refactor: Rename Kernel class to make it less confusing."
This commit is contained in:
commit
258c492eca
@ -19,7 +19,7 @@ try:
|
||||
except NameError:
|
||||
import gettext
|
||||
gettext.install("marconi", unicode=1)
|
||||
from marconi.kernel import Kernel # NOQA
|
||||
from marconi.bootstrap import Bootstrap # NOQA
|
||||
else:
|
||||
import sys as _sys
|
||||
_sys.stderr.write('Running from marconi source directory.\n')
|
||||
|
@ -21,11 +21,11 @@ from marconi.transport.wsgi import driver as wsgi
|
||||
cfg_handle = config.project('marconi')
|
||||
|
||||
|
||||
class Kernel(object):
|
||||
class Bootstrap(object):
|
||||
"""
|
||||
Defines the Marconi Kernel
|
||||
Defines the Marconi Bootstrap
|
||||
|
||||
The Kernel loads up drivers per a given configuration, and manages their
|
||||
The bootstrap loads up drivers per a given configuration, and manages their
|
||||
lifetimes.
|
||||
"""
|
||||
|
@ -12,7 +12,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from marconi import kernel
|
||||
import marconi
|
||||
from marconi.tests.util import suite
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@ class TestSimple(suite.TestSuite):
|
||||
def test_simple(self):
|
||||
"""Doesn't really test much."""
|
||||
conf_file = self.conf_path('wsgi_reference.conf')
|
||||
k = kernel.Kernel(conf_file)
|
||||
transport = k.transport
|
||||
boot = marconi.Bootstrap(conf_file)
|
||||
transport = boot.transport
|
||||
wsgi_app = transport.app
|
||||
self.assertTrue(True)
|
||||
|
Loading…
Reference in New Issue
Block a user