To replicate:
add
import bogus_package_that_does_not_exist
to the start of content_json function in nailgun/nailgun/api/v1/handlers/base.py
Run the test which uses it, for example
./run_tests.sh -t nailgun/nailgun/test/integration/test_notification.py::TestNotification::test_notification_node_discover
You should get lot of HTML in your console instead of a traceback string.
To replicate: that_does_ not_exist nailgun/ api/v1/ handlers/ base.py
add
import bogus_package_
to the start of content_json function in nailgun/
Run the test which uses it, for example nailgun/ test/integratio n/test_ notification. py::TestNotific ation:: test_notificati on_node_ discover
./run_tests.sh -t nailgun/
You should get lot of HTML in your console instead of a traceback string.