Tagged Questions
0
votes
1answer
23 views
Is it possible to skip setUp for a specific test in python's unittest?
As for the researchs I made, I believe it's not possible, but none of them was punctual about it.
In doing a unittest.TestCase I can define a setUp() function that will run before every test in that ...
1
vote
0answers
20 views
Django testdatabase is missing tables
I have run into a case of missing tables whilst running Django(1.3.x) tests which are using a backported version of LiveServer from 1.4 Normal tests run fine but it looks like the LiveServer tests ...
0
votes
1answer
34 views
Create pyramid request for testing, so that events are triggered
I would like to test a pyramid view like the following one:
def index(request):
data = request.some_custom_property.do_something()
return {'some':data}
some_custom_property is added to the ...
1
vote
1answer
13 views
Mock attributes in Python mock?
I'm having a fairly difficult time using mock in Python:
def method_under_test():
r = requests.post("http://localhost/post")
print r.ok # prints "<MagicMock name='post().ok' ...
0
votes
1answer
18 views
Writing python tests like Qunitjs
I'm trying to find a similar approach to Qunit's assertions in Python. When using assertions in Qunit, the message parameter is used in a very descriptive fashion.
test( "test", function() {
ok( ...
1
vote
0answers
10 views
How do I write a nose2 plugin that seperates different types of tests?
I'm writing a plugin that will separate treat my unit tests, functional tests & integration tests differently.
My tests folder will have the following structure exactly:
/tests
-- /unit
...
0
votes
3answers
34 views
Python Sourcing a CSH and passing setenv to a new subprocess
I'm currently trying to write some component tests for my team using python and I ran into a test procedure that tells the tester to source a csh file. This file has a bunch of setenv commands and ...
2
votes
0answers
128 views
Generate documentation with some preprocessing
I have a set of tests written using nose and I want to automatically create something like a test plan readable by non-programmers using sphinx or perhaps some other tool.
class TestUser():
...
0
votes
0answers
10 views
Anybody using Tema MBT tool before
After dowmload and install the package of site the, I create a BUG hunting mode and get stucked while run test, below is the message on the page:
Creating test configuration ... Done Composing ...
2
votes
0answers
29 views
Automated Test Run - Python HTTPResponseNotReady()
I am trying to create an automated test using python for testing a youtube API request and response and all of those happening in random quick timely manner.
What I have been getting is an unstable ...
0
votes
1answer
37 views
Python: How can I test my package if it runs on Linux, Mac and Windows
I need to test my Python package if it works properly on different systems. I found Tox for different Python versions, but what about different operating systems like Windows, Linux and Mac.
Can you ...
0
votes
1answer
34 views
Can I use an identity hasher for testing?
I have some tests for which I need to create fully-functional test users. I do this by subclassing TestCase in my tests, and initializing my test database in the setUp method. However, in order to ...
1
vote
0answers
63 views
selenium Firefox webdriver python: setting user authentication in setUp()
I am trying to write a selenium testing case using Python bindings. I am very new to this, so I am really at loss.
My problem: The test is to check basic functionality for wordpress blogs, so logging ...
4
votes
2answers
73 views
Tests for Basic Python Data Structure Interfaces
A fairly small question: does anyone know about a pre-made suite of Python unit tests that just check if a class conforms to one of the standard Python data structure interfaces (e.g., lists, sets, ...
1
vote
1answer
22 views
Surpress raise errors during unittesting?
I'm writing unit tests for an api library, however an error (which should be showing, since that test is for failed login) is interrupting the test. Is there a way to silent raised error messages just ...