unit test doctest Pyramid layout YourApp View YourApp Code: Models Forms etc Templating / render DB FS Events Routing / View Lookup WSGI App View callable Now with doctest and unitest
integration test unit test doctest Pyramid layout YourApp View YourApp Code: Models Forms etc Templating / render DB FS Events Routing / View Lookup WSGI App View callable Now with doctest, unitest, integration test
wish 2: Better SQLAlchemy tm transaction.manager wrap on views to write data when call is finished. DetachedInstanceError: Parent instance at 0x3959310> is not bound to a Session; lazy load operation of attribute 'roles' cannot proceed
wish 3: Routing - how to test?! ● Order of calls to pyramid.config. Configurator.add_route() matter ● This should be programmatically testable! ● Currently request.route_url() and check result.
functional test routing test integration test unit test doctest Pyramid layout YourApp View YourApp Code: Models Forms etc Templating / render DB FS Events Routing / View Lookup WSGI App View callable
functional test routing test integration test unit test doctest Pyramid testing 100% YourApp View YourApp Code: Models Forms etc Templating / render DB FS Events Routing / View Lookup WSGI App View callable