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