Nose / Nosegae: Import Issues

I have this problem and it drivin 'me nuts!

So, I am developing my first application for Google App Engine applications, and I always like to find things while writing tests.

So, I have the following setup:
I have virtualenv with nose, nose, website and gaetestbed. This is called porksvr.

I activate my virtualenv as follows:

source porksvr/bin/activate

To launch the nose, I use the following command:

nosetests --with-gae --gae-lib-root /home/fs/gae

This gives me the following error:

DEBUG: Access to module file denied: 
/home/fs/work/gaecode/porksvr/lib/python2.6/site-packages/webtest

So, at first I thought: "Well, the nose launches the application in the" context "dev_appserver, so it does not know about web testing."

, GAE. 3 :
-main.py
-app.yaml
-test_huh.py( -.)

, . nosetests cmds, .

, , , , .

, , "access... denied", . , , , virtualenv, , .

, - , , .

+3
2

, , .

, virtualenv --no-site-packages. -, - Python, - virtualenv. , webtest virtualenv, , .

100% , , - .

+2

Nose-GAE virtualenv.

--without-sandbox.

+6

Source: https://habr.com/ru/post/1761822/


All Articles