Questions tagged [nose]

Nose is an alternate Python unittest discovery and running process. It is intended to mimic the behavior of py.test as much as is reasonably possible.

Nose is an alternate unittest discovery and running process. It is intended to mimic the behavior of py.test as much as is reasonably possible.

Resources

1036 questions
0
votes
1 answer

Python unit-testing with nose + GAE plugin

Since today morning I'm having some weird problem with Python's unit-testing tool Nose + NoseGAE. I want to run unit-tests for my GAE project in terminal and it ends with this error: Traceback (most recent call last): File…
martin
  • 93,354
  • 25
  • 191
  • 226
0
votes
1 answer

Can't import logging.handlers inside a nose test

I'm writing a basic test with nose to call a single function from a logging wrapper, but once I got the test to be discovered I started getting standard library module import errors. This is the code I'm trying to write some tests for and has been…
Joshua Olson
  • 3,675
  • 3
  • 27
  • 30
0
votes
1 answer

getting test class instance in nose test object to sync up with instance in decorated generator target

I've been working on a way to get tests produced from a generator in nose to have descriptions that are customized for the specific iteration being tested. I have something that works, as long as my generator target method never tries to access…
Silas Ray
  • 25,682
  • 5
  • 48
  • 63
0
votes
2 answers

'nosetests' was unable to collect test files from directory

I am having a hierarchy of directories and inside every directory there is one 'test/' directory which has all the test files. nosetests is not able to collect these test files somehow. I have followed naming convention used for filenames and class…
Aashish P
  • 1,894
  • 5
  • 22
  • 36
0
votes
1 answer

Nosetest & import

I am pretty new to Python. Currently I am trying out PyCharm and I am encountering some weird behavior that I can't explain when I run tests. The project I am currently working on is located in a folder called PythonPlayground. This folder contains…
svb
  • 641
  • 1
  • 7
  • 13
0
votes
1 answer

nose.run() seems to hold test files open after the first run

I'm having the same problem on Windows and Linux. I launch any of various python 2.6 shells and run nose.py() to run my test suite. It works fine. However, the second time I run it, and every time thereafter I get exactly the same output, no matter…
Gary Fixler
  • 5,632
  • 2
  • 23
  • 39
0
votes
1 answer

Is there any way to install nose in Maya?

I'm using Autodesk Maya 2008 on Linux at home, and Maya 2012 on Windows 7 at work. Most of my efforts so far have been focused on the former. I found this thread, and managed to get the setup there working at home. The gist of it is that you install…
Gary Fixler
  • 5,632
  • 2
  • 23
  • 39
0
votes
1 answer

nose test + class iterator = strange behavior

I'm creating class which behaves like list(), but you can add strings to it and these strings will be splitted by spaces on words and these words will be added to the class instance. Same with substraction: substraction removes words from class…
Oleksandr
  • 419
  • 3
  • 14
0
votes
1 answer

Ignore stderr output for test result

I am trying to test a package with nose. During one of the tests I write to stderr, this causes the test to be reported as broken in Jenkins (I start the test using nose and generate the Junit .xml output to determine the success) Is it possible to…
ted
  • 4,791
  • 5
  • 38
  • 84
0
votes
1 answer

Can't run individual nosetests from a PyQt GUI I've made - ValueError: No such test

I've created a GUI for running nosetests in PyQt. GUI code: http://pastebin.com/uVhkdDZc My code: http://pastebin.com/3MG8PJn0 My interface reads the files in a folder of unittests and then populates a combobox with those tests and in turn, another…
markwalker_
  • 12,078
  • 7
  • 62
  • 99
0
votes
1 answer

nosetests: algorithms.py:125: RuntimeWarning: tp_compare didn't return -1 or -2 for exception

I got the following message while running nosetests pandas: C:\Python27\lib\site-packages\pandas\core\algorithms.py:125: RuntimeWarning: tp_compare didn't return -1 or -2 for exception sorter = uniques.argsort() Is this a serious issue that I…
0
votes
1 answer

django_nose unit tests fail (no such option)

I have a new project and can't get django_nose set up correctly. I have never had this problem before. So, makes me think that it's a configuration issue. But, I can't spot it. I'm using virtualenv and have both nose and django-nose installed. …
David S
  • 12,967
  • 12
  • 55
  • 93
0
votes
1 answer

Where to find build_tests command?

When I was reading examples for testing a package in multiple pythons with tox I found about a command "build_tests" that would put (2to3'd) test files in build/ directory. I could also google it in some projects' tox.ini files and some gentoo…
zefciu
  • 1,967
  • 2
  • 17
  • 39
-1
votes
1 answer

Struggling with imports in Python

I'm just sruggling with importing modules from nested packages in Python. After execute command in project root directory: $ nosetests Unfortunatelly, i'm still getting logs like…
Karol
  • 51
  • 6
-1
votes
1 answer

tox throws and error when running nosetest command

I created this tox.ini file: [tox] envlist = py37 [testenv] commands = /bin/sh nosetests config_test.test_config_sdk:test_bucket_existing It throws this error: $ tox GLOB sdist-make: /Users/me/git/config-test/setup.py py37 create:…
runnerpaul
  • 5,942
  • 8
  • 49
  • 118