Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is a python real project to be used as example for the unit-test part?

I'm looking for a python project to use as example to copy the design of the unit test parts.

The project should have these features:

  1. its code is almost fully unit tested
  2. the code is distributed in many packages, there are more that one level of packages
  3. all the test can be run with a single command, for example with python test.py

I need that the project should use the same test convention for all the code contained. I saw the whole python project but the the various packages are tested with different conventions. For example the setuptools packages uses an ad hoc adaption of unittest library while the other packages doesn't.

I need that the project doesn't use a ad-hoc or a highly customized testing framework, because I want reuse its test architecture in my project.

like image 587
Andrea Francia Avatar asked Dec 17 '08 13:12

Andrea Francia


People also ask

Where do unit tests go in python project?

If your package and test code are small and self contained, put the tests in with the package. If the tests are large or complex, or require reading/writing files, or significant sample data, put your tests outside the package.

What is unit testing in python with example?

Unit testing is a technique in which particular module is tested to check by developer himself whether there are any errors. The primary focus of unit testing is test an individual unit of system to analyze, detect, and fix the errors. Python provides the unittest module to test the unit of source code.

What is unit testing with real life example?

An example of a real-world scenario that could be covered by a unit test is a checking that your car door can be unlocked, where you test that the door is unlocked using your car key, but it is not unlocked using your house key, garage door remote, or your neighbour's (who happen to have the same car as you) key.


1 Answers

Maybe Nose itself?

like image 195
PEZ Avatar answered Nov 22 '22 17:11

PEZ