Tagged Questions
3
votes
1answer
134 views
How to keep unit tests independent?
I've read it at many places that unit tests should be independent. In my case I have a class that does data transformation. These steps must be done sequentially, otherwise they don't make sense. For ...
3
votes
2answers
172 views
Do I need to learn python first to understand the part 2 of the book Test Driven development?
It seems like Python is used as a coding language for part 2 of Kent Beck's book Test Driven Development. I have read the first part of that book and started appreciating the value of TDD . First part ...
4
votes
1answer
267 views
Behavior Driven Development and Unit Testing in Python
We might be interested in starting to incorporate a unit test suite to our project, which is coded in Python (and it uses Redis, PostgreSQL and some third-party libraries, if that bears into the ...
1
vote
1answer
271 views
scons and python unit tests best practices
I am using scons to build a large project containing a mix of C++ and Python. I would like scons to run Python unit tests either using nose or not. Currently, we have a long list of tests files and ...
1
vote
2answers
601 views
Is there a good example of Python code for unit testing an api? [closed]
Do you know any good example of Python unit testing code for testing an API?
Thanks!
Update:
Found this very interesting question: ...
2
votes
2answers
297 views
How to populate a private container for unit test?
I have a class that defines a private (well, __container to be exact since it is python) container. I am using the information within said container as part of the logic of what the class does and ...
5
votes
2answers
240 views
Writing functional tests for a legacy project
I am trying to add a couple of tests to a legacy C project. The project basically consists of a command line tool that prints something to stdout every time an event happens. Now, since writing unit ...
4
votes
1answer
200 views
What is the typical Pythonic view on re-using python modules outside of their initial intent?
Short Question
Does it fly in the face of the Pythonic view to reuse / repurpose python modules for projects out side of their intent?
Background
Over the past several months I have been working on ...
6
votes
3answers
386 views
Is having a switch to turn mocking on or off a code smell?
I have a method that looks like this:
def foobar(mock=False, **kwargs):
# ... snipped
foobar actually makes several calls to Amazon S3 and returns a composed result.
In order to make this ...
2
votes
2answers
239 views
What is the best way to find a python google app engine coach? [duplicate]
Possible Duplicate:
How to find programming mentor?
i'm a software engineer and have been building Google App Engine apps with Python for about a year. I have a pretty good familiarity with ...