예제 #1
0
def test_prepare_error(logger_mock, app_mock):
    def throw_error():
        raise Exception("Fake Error")

    app_mock.side_effect = throw_error
    app = Pantam()
    app.build()
    logger_mock.assert_called_with("Unable to build Pantam application!")
예제 #2
0
from pantam import Pantam

pantam = Pantam(debug=True, actions_folder="domain/actions")

app = pantam.build()