![]() So it’s not necessary to specify this option. Usually Django can figure this out automatically, Top_level can be used to specify the directory containing your class DiscoverRunner( pattern = 'test*.py', top_level = None, verbosity = 1, interactive = True, failfast = False, keepdb = False, reverse = False, debug_mode = False, debug_sql = False, parallel = 0, tags = None, exclude_tags = None, test_name_patterns = None, pdb = False, buffer = False, enable_faulthandler = True, timing = True, shuffle = False, logger = None, ** kwargs) ¶ĭiscoverRunner will search for tests in any file matching pattern. Selection of other methods that are used by run_tests() to set up, executeĪnd tear down the test suite. This class defines the run_tests() entry point, plus a ![]() With a DiscoverRunner class that defines the default Django testingīehavior. Process to satisfy whatever testing requirements you may have.Ī test runner is a class defining a run_tests() method. That can be executed from Python code, or to modify the Django test execution In this way, it is possible to use any test framework That class, Django will execute your test runner whenever you run If you define your own test runner class and point TEST_RUNNER at
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |