Пример #1
0
 def setUp(self):
     self.view = View(Application(os.getcwd()))
     self.view.add("tests/integrations/templates")
Пример #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)
Пример #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)
Пример #4
0
 def setUp(self):
     application = Application(os.getcwd())
     self.response = Response(application)
Пример #5
0
 def setUp(self):
     application = Application(os.getcwd())
     application.bind("router",
                      RouteCapsule(Route.get("/", None).name("home")))
     self.response = Response(application)
Пример #6
0
 def test_initialize_application(self):
     app = Application(os.getcwd())
     self.assertTrue(app)