Questions tagged [nose-gae]

NoseGAE is a nose plugin for Google App Engine testing which makes it easier to write functional and unit tests.

NoseGAE is a nose plugin for Google App Engine testing which makes it easier to write functional and unit tests.

Useful links

8 questions
4
votes
2 answers

How do I mock users with GAE and Nosetest?

How do I call call setup_env() when nose instantiates testbed on it's own? I'm trying to develop a App Engine app with TDD and I need to figure out how to mock users. I start my tests with: nosetests -v --with-gae I had several people suggest…
BryanWheelock
  • 12,146
  • 18
  • 64
  • 109
3
votes
1 answer

PyCharm unable to load NoseGAE

I've created a nose test config in PyCharm. I have NoseGAE installed in the virtualenv where I'm working. Running tests from the terminal with ./env/bin/nosetests --with-gae src/tests works great. The PyCharm test config, however,…
brandones
  • 1,847
  • 2
  • 18
  • 36
2
votes
1 answer

Unexpected test result for datastore tests ran with nosegae

I have a UserRepository class that I am writing unittests for class UserRepository(object): """ Repository that handles storage and retrieval of models.User objects in and from the datastore. """ def create(self, user): …
Tim
  • 41,901
  • 18
  • 127
  • 145
1
vote
2 answers

Imports are not properly handled while running nosetests in multi process mode

Given a test case: import unittest import mock class TestTest(unittest.TestCase): def test_test(self): print dir(__import__('google')) with mock.patch('google.appengine.api.urlfetch.fetch'): pass - $ nosetests --with-gae…
Dmytro Sadovnychyi
  • 6,171
  • 5
  • 33
  • 60
1
vote
2 answers

Google app engine: unitest works nosetest fails

I've wrote this simple code to test my model: class NDBTestCase(unittest.TestCase): def setUp(self): logging.getLogger().setLevel(logging.INFO) # First, create an instance of the Testbed class. self.testbed =…
EsseTi
  • 4,079
  • 5
  • 36
  • 63
0
votes
1 answer

NoseGAE ImportError: No module named contrib.appengine

I am trying to integrate nose and NoseGAE in a Python project. Tried running: nosetests tests --with-gae in virtualenv ERROR: from oauth2client.contrib.appengine import AppAssertionCredentials ImportError: No module named…
0
votes
4 answers

How do I confirm entities are saved with GAE's Eventual Consistency?

I'm trying to create tests to verify that my entities are being saved in the database. When I put breakpoints in the post function, I can see that the customer count changes after the record is saved. I read…
0
votes
2 answers

Error when running tests with nose-gae

I've been using nose-gae for awhile, and I just updated to release 0.3.0, which is only 3 days old. I'm running GAE SDK 1.9.17 on Mac OS X Yosemite. When I run my tests, I get the following…
new name
  • 15,861
  • 19
  • 68
  • 114