djay / piratechat

Demo of pyramid_sockjs and robotsuite
3 stars 1 forks source link

doesn't work with zc.testrunner or pytest. #1

Open djay opened 11 years ago

djay commented 11 years ago

@sneridagh I'm not sure what I'm doing wrong. Any ideas?

sneridagh commented 11 years ago

Doing a fast check, I can't find your test.ini (it should be similar to the paster.ini) to launch the application in a test enviroment. Can you check it out?

djay commented 11 years ago

That file is now pushed. Looking at it further it seems the layer code isn't executed at all. In fact I think the test runner just isn't finding the test. "bin/test --list-tests" finds nothing.

djay commented 11 years ago

Found the problem with finding test. missing initpy. However now layer isn't starting pyramid app right. any help would be appreciated.

sneridagh commented 11 years ago

I've added that missing __init__.py and fixed some import errors on layers.py and the test launched right... however, it does not pass. The missing import is

from paste.deploy import loadapp
import os
sneridagh commented 11 years ago

I assume that you've arrived to this point, maybe it's something to do with the app initialization and the test app environment?