[pylons-discuss] triggering failures during integrated tests?

2018-08-10 Thread Jonathan Vanasco
One of my applications provides both an oAuth1 server for authentication and client for requesting authorization. Unit tests are fine, but I'd like to trigger failure on certain phases during the integrated tests, and could use some advice. The types of things I'm hoping to test, are basically

[pylons-discuss] Re: Pyramid; Views not found in unit-tests

2018-08-10 Thread Oliver
You should include your route setup before, so that your registry gets populated. I usually use pytest and its fixtures to have access to everything I need in testing, e.g. something like this: import pytest @pytest.fixture(scope='session') def test_settings(): import plaster

[pylons-discuss] Pyramid; Views not found in unit-tests

2018-08-10 Thread Gerhard Schmidt
Hi, I'm writing a pyramid software using traversal with quite some complex ways of finding views and testing permissions to the view. Everything works quite well in the running pyramid server but in unit-tests the views that are there aren't found. I use the following code to get the callable