ghtest.analyze_tests module

ghtest.analyze_tests.get_codes(cassette_dir, src_dir)[source]

list requests return codes found in cassette_dir cassettes

ghtest.analyze_tests.print_scan(scs)[source]
ghtest.analyze_tests.print_suggestion(sps)[source]
ghtest.analyze_tests.print_test_summary(cassette_dir='testdata_tests/cassettes', test_dir='testdata_tests', src_dir='testdata', data_dir='data', test_objects_dir='testdata_test_objects', refresh=False, vb=0)[source]

Print tests statistics like tested functions, request return codes etc.

Parameters:
  • cassette_dir (str) – folder with vcr cassettes

  • test_dir (str) – folder with tests

  • src_dir (str) – folder with source under test

  • data_dir (str) – data folder within tests to ignore

  • test_objects_dir (str) – folder with test objects

  • refresh (bool) – create tests before showing detailed stats, else try to load from disk

  • vb (int) – detail level

Returns:

None

Side Effects:

prints to stdout

ghtest.analyze_tests.print_tests(trs)[source]