Skip to main content

All Questions

Tagged with
1 vote
0 answers
69 views

Getting nose's numeric test ID in a test

I have tests that I run with nose, and I'd like to make them run in parallel using the --processes flag. Every test opens a port which is configurable, and I'd like to calculate the port number based ...
GabeL's user avatar
  • 715
2 votes
0 answers
279 views

How run single test with parameterized in PyCharm (I use nosetests)

I have a quick question: can I run one test with parameters by Parameterized? E.g. in PyCharm? I can run all test cases but I don't want to check all cases all the time :) For example, I have ...
Natalia's user avatar
  • 21
0 votes
1 answer
198 views

Learning to code and a syntax error appears when I conduct nose tests, I can't see the error

I receivee a syntax error when I use nosetests on the following piece code. I've checked the code to see whether it matches the description in the book and I don't see any errors. This is the segment ...
CodeyBanks's user avatar
1 vote
1 answer
585 views

Coverage is skipping return statements

I have a class and some tests for it. Coverage runs everything just fine, but reports that the lines containing return are not executed. The rest of the multi-line return statement is executed just ...
user avatar
3 votes
1 answer
1k views

Migrating form noses setup_package() to pytest

right now I'm trying to convert some API tests from Nose to Pytest. When I tried to do that I faced a little problem: Pytest doesnt support the "setup_package()" functionality. The "setup_package()" ...
Faram's user avatar
  • 545
1 vote
1 answer
2k views

Python: How to tests a program that uses fork?

I am writing a program that uses several instances of the same code in production. Instances then communicate over network, but that is irrelevant here. During development, I fork the initial process ...
arnuschky's user avatar
  • 2,219
0 votes
1 answer
357 views

Nose skip debug messages

I starts nosetests with selenium as python my_test.py --tests=my_test --with-xunit --xunit-file=my_output.xml and I get a lot of useless output like: selenium.webdriver.remote.remote_connection: ...
nick_gabpe's user avatar
  • 5,605
3 votes
1 answer
1k views

skip only one parameter from the parameterized list in python nose-parameterized

As I understand, parameterized.expand([1, 2, 3]) will create three test cases. I would like to know how can I skip only one of them? I know that @unitest.skip() will skip the whole 3 test cases, I ...
IslamTaha's user avatar
  • 1,406
1 vote
0 answers
96 views

Looks like I totally don't understand how python nose --match parameter works

By default --match parameter has value '(?:^|[b_./-])[Tt]est' which is fine (wait, no, I don't understand what that means). But if I want to run only test functions which start with a prefix '.*...
paratrooper's user avatar
11 votes
4 answers
838 views

Automatically detect test coupling

We have a large test codebase with more than 1500 tests for a Python/Django application. Most of the tests use factory-boy for generating data for the project models. Currently, we are using nose ...
alecxe's user avatar
  • 471k
1 vote
1 answer
157 views

TypeError is raised when using `abort(404)`

When I use abort(status_code=404, detail='No such user', passthrough='json') This exception is raised: TypeError: 'NoneType' object is not iterable This is the traceback: File "/home/jugger/....
Amin Etesamian's user avatar
1 vote
1 answer
167 views

Restrict nosetests coverage to only the tests that were run

Is there a way to have nosetests restrict the coverage information to only the tests that were run? I know about the cover-package flag, but it would be nicer if you didn't have to specify the ...
plopploploplop's user avatar
0 votes
1 answer
170 views

Noestests: AttributeError using @patch when running Nosetests on multiple files

I am running nosetests across multiple files and getting an error relating to the importing of a specific file, well I'm not actually sure what the error is related to, I think it is either something ...
ThriceGood's user avatar
  • 1,693
0 votes
1 answer
124 views

How to provide a sensitive data to nose

I am using nose to test a Python class that requires a username and password. What is the best practice for providing that username and password pair to the test module? I'd like the testing process ...
cjohnson318's user avatar
  • 3,213
1 vote
1 answer
990 views

Python: Nosetests with multiple files

This is a broad question because no one seems to have found a solution to it as yet so I think asking to see a working example might prove more useful. So here goes: Has anyone run a nosetests on a ...
Jeeves's user avatar
  • 434

15 30 50 per page
1
2 3 4 5
8