Hello, I am studying the Pyramid framework and I tried to follow the SQLAlchemy + URL Dispatch Wiki Tutorial <http://docs.pylonsproject.org/projects/pyramid/en/latest/tutorials/wiki2/index.html> ( http://docs.pylonsproject.org/projects/pyramid/en/latest/tutorials/wiki2/index.html )
When I get into the Adding Authorization I can't make it to work. If I try to login with editor/editor I don't get redirected to the last page, also if I am already logged in and I try to edit the FrontPage I get locked into the login view again. I do get a login error when I don't type editor/editor. I've used the nosetests to look if the tests would pass and they didn't ( http://docs.pylonsproject.org/projects/pyramid/en/latest/tutorials/wiki2/tests.html ) I get two errors #1 ====================================================================== FAIL: test_editors_member_user_can_add (tutorial.tests.FunctionalTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/aprado/work/sandbox/pyramidtut/tutorial/tutorial/tests.py", line 230, in test_editors_member_user_can_add self.assertTrue(b'Editing' in res.body) AssertionError: False is not true -------------------- >> begin captured logging << -------------------- txn.139859986990912: DEBUG: new transaction txn.139859986990912: DEBUG: commit <zope.sqlalchemy.datamanager.SessionDataManager object at 0x7f33ab15ba10> txn.139859986990912: DEBUG: commit chameleon.template: DEBUG: cooking '/home/aprado/work/sandbox/pyramidtut/tutorial/tutorial/templates/login.pt' (2093 bytes)... --------------------- >> end captured logging << --------------------- #2 ====================================================================== FAIL: test_editors_member_user_can_edit (tutorial.tests.FunctionalTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/aprado/work/sandbox/pyramidtut/tutorial/tutorial/tests.py", line 225, in test_editors_member_user_can_edit self.assertTrue(b'Editing' in res.body) AssertionError: False is not true -------------------- >> begin captured logging << -------------------- txn.139859986990912: DEBUG: new transaction txn.139859986990912: DEBUG: commit <zope.sqlalchemy.datamanager.SessionDataManager object at 0x7f33ab207dd0> txn.139859986990912: DEBUG: commit chameleon.template: DEBUG: cooking '/home/aprado/work/sandbox/pyramidtut/tutorial/tutorial/templates/login.pt' (2093 bytes)... --------------------- >> end captured logging << --------------------- Any help is appreciated, I've already tried to diff my files with the tutorial files and they are identical. Is the tutorial right? -- Atenciosamente/Regards André Castelan Prado -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/d/optout.
