summaryrefslogtreecommitdiff
path: root/functional_tests/test_program.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix #875: nose doesn't collect tests when subpackage is given as argJohn Szakmeister2015-01-251-3/+3
| | | | | | | | | | | | | | When a subpackage is specified on the command line (e.g., `nosetests foo.bar`), it should pick up all the tests below the subpackage. The root of the problem came from how we resolved a filename for a package. We should really point to the package directory, instead of providing the path to the `__init__.py` file. Otherwise, we only end up attempting to select modules from the `__init__.py` instead of the whole tree underneath. We don't want to check for a path ending in `__init__.py` in `loadTestsFromModule()` because then we select the whole subtree of tests when `foo/bar/__init__.py` is specified when only tests in the __init__.py should be selected.
* Fix #771: attr plugin is broken when parent overrides child methodJohn Szakmeister2014-02-201-10/+2
| | | | | | | | | | | | | | | | | The issue is when the parent and child have different attributes, and the parent method was being bypassed because of the attribute selection. In this case, Nose would incorrectly use the version from the base class, even though it was supposed to skip the method entirely. To fix this, we need simply need to stop digging through base classes. The dir() method returns a flattened set of methods, so there's no need to iterate through the base classes trying to dig up all the methods. Moreover, it leads to false positives since we were not keeping track of methods seen on the parent classes. As a result, we'd incorrectly select a test for inclusion (using attributes), or we'd pick up a method that we should've ignored (like runTest in a Twisted test case). Thanks to Thomas Grainger for providing a test case!
* Fix a twisted test to work with Twisted 12.3.0 or better.John Szakmeister2013-03-041-1/+11
| | | | | | | Twisted has updated trial to work better with unittest's test runner. As a result, skipped tests are no longer reported as failures. Since this is the desired result, fix the test to no longer expect a failure for the skipped test. This was tested from Twisted 10.0 to 12.3.
* Fixed import errors after new unittest module layout in 2.7. Added exit= ↵Kumar McMillan2009-10-151-1/+2
| | | | keyword to TestProgram subclass. Replaced _strclass which was removed from unittest. Adjusted some paths in doctests. TODO: looks like custom test descriptions is broken.
* Merged 160-jython. Add test.sh shell script to run selftest under ↵Jason Pellerin2008-03-261-1/+5
| | | | python2.3-2.5 and jython. Updated ls_tree and svn:ignore to ignore $py.class files.
* MERGED 0.10.0-stable 378:411 to trunk in preparation for 0.10.1 release.Jason Pellerin2007-12-221-0/+58
|
* Added additional twisted integration tests. Fixed bug in twistedtools ↵Jason Pellerin2007-05-101-3/+35
| | | | handling of reactors that caused twisted.trial tests run after twistedtools tests to hang or otherwise fail to report any outcome.
* Changed exit argument to TestProgram to exit from exit_. Added failing error ↵Jason Pellerin2007-05-101-3/+3
| | | | classes to test run summary.
* Restored correct default behavior of main() (exits), run() (does not exit, ↵Jason Pellerin2007-05-071-4/+9
| | | | returns success)
* Updated add_path so that it adds lib and src dirs in the parent path to ↵Jason Pellerin2007-04-301-1/+27
| | | | sys.path also. Added functional test for lib/ src/ tests/ package layout.
* Some work on 2.3 compat -- still much to doJason Pellerin2007-04-251-2/+2
|
* Fixed interaction between doctest test and importer test. Changed program ↵Jason Pellerin2007-04-121-12/+10
| | | | tests to use canned config so they do not pick up settings from config files. Removed no longer appropriate unit tests.
* Implemented config file support (#18) based on patch from Antoine Pitrou.Jason Pellerin2007-04-101-0/+2
|
* Added a functional test for testprogram that loads some testsJason Pellerin2007-03-241-0/+21
|
* Began work on functional tests from TestProgramJason Pellerin2007-03-201-0/+42