nosetests Questions
2
Solved
I am trying to write some nose tests for a python project. It has been a while (a year or so) since I last wrote some nostests and it looks like nose2 is the suggested module to use for this now.
...
Lemar asked 25/2, 2014 at 17:57
4
Solved
I have an abstract base class along the lines of:
class MyAbstractClass(object):
__metaclass__ = ABCMeta
@abstractproperty
def myproperty(self): pass
But when I run nosetests (which coverage...
Marjie asked 8/2, 2012 at 22:48
12
Solved
I ran a build last night, successfully. I got up this morning and ran another without changing any configuration or modifying any source code. Now my build is failing with the message "No source fo...
Wrote asked 5/3, 2010 at 13:21
3
Solved
In previous version of Nose testing framework, there were several ways to specify only a subset of all tests:
nosetests test.module
nosetests another.test:TestCase.test_method
nosetests a.test:Tes...
3
On different input values posted to a url of my flask application, it flashes different messages, e.g. 'no data entered', 'invalid input', 'no record found', '3 records found'.
Can someone guide h...
Peppard asked 8/4, 2015 at 7:34
5
Solved
When I type
$ nosetests -v mytest.py
all my print outputs are captured when all tests pass.
I want to see print outputs even everything passes.
So what I'm doing is to force an assertion error ...
9
Solved
I am unable to use nose (nosetests) in a virtualenv project - it can't seem to find the packages installed in the virtualenv environment.
The odd thing is that i can set
test_suite = 'nose.collec...
Prehistoric asked 14/5, 2009 at 18:30
6
Solved
I have a Pylons 1.0 app with a bunch of tests in the test/functional directory.
I'm getting weird test results and I want to just run a single test.
The nose documentation says I should be able to...
3
Solved
Suppose you have a python package named A with the following directory structure
A
├── B.py
└── __init__.py
where __init__.py is empty and the content of B.py is given by
def test_B():
assert ...
6
I have a file called test_web.py containing a class TestWeb and many methods named like test_something().
I can run every test in the class like so:
$ nosetests test_web.py
...
=================...
3
Solved
My application depends on request.remote_addr which is None when i run tests through nosetests which uses app.test_client().post('/users/login', ....).
How can I emulate an IP (127.0.0.1 works fin...
4
I'm on exercise 46 of Learn Python the Hard Way, and I'm meant to install nose and run nosetests. I've installed nose already using pip, but when I run nosetests in the directory above the 'tests' ...
Guttate asked 8/9, 2012 at 6:47
3
I'm using nose to run my "unittest" tests and have nose-cov to include coverage reports. These all work fine, but part of my tests require running some code as a multiprocessing.Process. The nose-c...
Strage asked 8/12, 2014 at 17:12
3
It's mentioned in the documentation (http://nose.readthedocs.org/en/latest/api/core.html) but there don't seem to be any examples, and trying it seems to run all tests in the cwd.
4
Solved
I have a test suite that gets executed as a part of a larger build framework, written in Python. Some of the tests require parameters, which I want to pass using environment variables.
Apparently ...
3
Solved
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 but I was wo...
Belenbelesprit asked 14/10, 2010 at 5:45
10
I'm trying to install nose on my computer for the Learn Python the Hard Way tutorial, but can't seem to get it to work. I'm using pip to install:
$ pip install nose
And I get back:
Requirement...
Harte asked 14/9, 2013 at 0:11
3
Solved
When there is significant overlap in test setup, it can keep things DRY to use inheritance. But this causes issues with unnecessary duplication of test execution:
from unittest import TestCase
cl...
Cornelia asked 3/11, 2015 at 15:48
3
My project folder(yeah - I know it's best practice) is something like:
.
├── app.py
├── otherscript.py
├── tests/
└── tools/
├── __init__.py
└── toolfile.py
I need nose --with-coverage to test...
3
Solved
I am currently writing some functional tests using nose. The library I am testing manipulates a directory structure.
To get reproducible results, I store a template of a test directory structure ...
Grandaunt asked 23/5, 2013 at 9:21
3
Solved
I'm running a suite of tests (.py files) using nosetests. Using a classic
import pdb; pdb.set_trace()
the nosetests run just never completes. It just hangs right where the breakpoint has been se...
4
Solved
I've been thinking about switching from nose to behave for testing (mocha/chai etc have spoiled me). So far so good, but I can't seem to figure out any way of testing for exceptions besides:
@then...
Pt asked 12/1, 2015 at 3:41
1
Is it possible to have nose output only the name of the tests that fail to get a simple and compact list of failed tests?
I have figured out how to discard the captured stdout:
nosetests -s
but...
Acromion asked 7/9, 2012 at 18:31
4
Solved
I'm starting to use IPython notebooks to document some of my code with interactive usage examples. In order to avoid having the documentation get too far out of date from the code, I'd like the cod...
Jabot asked 9/12, 2013 at 23:52
1
Solved
I'm trying to suppress all sqlalchemy warnings while running my test suite with nosetests. I read Turn off a warning in sqlalchemy
.............................../Users/ca/.pythonbrew/venvs/Python...
Doze asked 20/7, 2012 at 10:36
1 Next >
© 2022 - 2024 — McMap. All rights reserved.