Ejemplo n.º 1
0
 def setUp(self):
     self.view = View(Application(os.getcwd()))
     self.view.add("tests/integrations/templates")
Ejemplo n.º 2
0
from src.masonite.foundation import Application, Kernel, HttpKernel
from tests.integrations.config.providers import PROVIDERS
import os

application = Application(os.getcwd())
"""First Bind important providers needed to start the server
"""

application.register_providers(Kernel, HttpKernel)

application.add_providers(*PROVIDERS)
Ejemplo n.º 3
0
from src.masonite.foundation import Application, Kernel
from src.masonite.utils.location import base_path
from tests.integrations.config.providers import PROVIDERS
from tests.integrations.app.Kernel import Kernel as ApplicationKernel

# here the project base path is tests/integrations
application = Application(base_path("tests/integrations"))
"""First Bind important providers needed to start the server
"""

application.register_providers(
    Kernel,
    ApplicationKernel,
)

application.add_providers(*PROVIDERS)
Ejemplo n.º 4
0
 def setUp(self):
     application = Application(os.getcwd())
     self.response = Response(application)
Ejemplo n.º 5
0
 def setUp(self):
     application = Application(os.getcwd())
     application.bind("router",
                      RouteCapsule(Route.get("/", None).name("home")))
     self.response = Response(application)
Ejemplo n.º 6
0
 def test_initialize_application(self):
     app = Application(os.getcwd())
     self.assertTrue(app)