nose
Getting Python's unittest results in a tearDown() method
Is it possible to get the results of a test (i.e. whether all 开发者_如何学JAVAassertions have passed) in a tearDown() method? I\'m running Selenium scripts, and I\'d like to do some reporting from in[详细]
2023-01-29 19:21 分类:问答Running nose with a large number of test-data files
I want to write some tests for a web scraper. I want to use a lot of test web pages, but I\'m not sure exactly how to get nose (or another unit testing framework) to do what I need without a huge amou[详细]
2023-01-27 08:34 分类:问答How to assert output with nosetest/unittest in python?
I\'m writing tests for a function like next one: def foo(): print \'hel开发者_开发技巧lo world!\'[详细]
2023-01-26 07:50 分类:问答Using Nose to test txmongo dependent code
I want to use nose to test an application that I am writing using twisted and txmongo. I can\'t even get simple use cases like the following working:[详细]
2023-01-23 19:20 分类:问答Interactive debugging with nosetests in PyDev
I\'m using PyDev ( with Aptana ) to write and debug a Python Pylons app, and I\'d like to step through the tests in the debugger.[详细]
2023-01-23 12:53 分类:问答South django.db.utils.IntegrityError: django_content_type.name may not be NULL while running unit tests
I\'m getting this error django.db.utils.IntegrityError: django_content_type.name may not be NULL while running tests via nosetest.[详细]
2023-01-23 10:01 分类:问答How do you run nosetest from pycharm?
How do you execute nosetest from pycharm to run all unit tests? I know that pycharm supports python\'s unittest and py.test and that开发者_开发技巧 they will properly support nosetests in pycharm 1.1[详细]
2023-01-19 18:57 分类:问答why python nose unittest teardown fixture failed
I\'m using nose test framework. When running a test module, the teardown function defined in it failed. the error raised says the fixture is locked by another process. here is my test module, test_my_[详细]
2023-01-19 12:50 分类:问答python nose and twisted
I am writing a test for a function that downloads the data from an url with Twisted (I know about twisted.web.client.getPage, but this one adds some extra functionality). Either ways, I want to use no[详细]
2023-01-19 05:33 分类:问答How to change the message in a Python AssertionError?
I\'m writing per the following, in which I try to produce a decent error message when comparing two multiline blocks of Unicode text. The interior method that does the comparison raises an assertion,[详细]
2023-01-18 06:58 分类:问答