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
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
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