def test_get_app_property(app): coney = Coney(app) assert coney.app == app my_app = coney.get_app() assert my_app == app
def test_get_app_missing(): coney = Coney() with pytest.raises(RuntimeError): coney.get_app()