def setUp(self): self.view = View(Application(os.getcwd())) self.view.add("tests/integrations/templates")
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)
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)
def setUp(self): application = Application(os.getcwd()) self.response = Response(application)
def setUp(self): application = Application(os.getcwd()) application.bind("router", RouteCapsule(Route.get("/", None).name("home"))) self.response = Response(application)
def test_initialize_application(self): app = Application(os.getcwd()) self.assertTrue(app)