Package logilab-common-0 :: Package 39 :: Package 0 :: Module pytest :: Class DjangoTester
[frames] | no frames]

Class DjangoTester

source code

object --+    
         |    
  PyTester --+
             |
            DjangoTester

Instance Methods
 
load_django_settings(self, dirname)
try to find project's setting and load it
source code
 
before_testfile(self) source code
 
after_testfile(self) source code
 
testall(self, exitfirst=False)
walks trhough current working directory, finds something...
source code
 
testonedir(self, testdir, exitfirst=False)
finds each testfile in the `testdir` and runs it
source code
 
testfile(self, filename, batchmode=False)
runs every test in `filename`
source code

Inherited from PyTester: __init__, show_report

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

testall(self, exitfirst=False)

source code 
walks trhough current working directory, finds something
which can be considered as a testdir and runs every test there

Overrides: PyTester.testall

testonedir(self, testdir, exitfirst=False)

source code 
finds each testfile in the `testdir` and runs it

Overrides: PyTester.testonedir

testfile(self, filename, batchmode=False)

source code 
runs every test in `filename`

:param filename: an absolute path pointing to a unittest file

Overrides: PyTester.testfile