test package¶
Submodules¶
test.test_browser_output module¶
test.test_extract_sizes module¶
Unit tests for extract sizes
- class test.test_extract_sizes.TestExtractSizes(methodName='runTest')¶
Bases:
unittest.case.TestCase
Test cases for the extract sizes Includes testing None cases and valid PDFs
- test_dict_fonts_none()¶
Asserts that when None is passed into tag_text, no error happens and None is returned
- test_font_doc_none()¶
Asserts that when None is passed into get_sizes, no error happens and None is returned
- test_font_size_1()¶
Tests the unique font size is as expected for Test1
- test_font_size_2()¶
Tests the unique font size is as expected for Test2
- test_text_to_groupings_1()¶
Tests the groupings given a file
- test_text_to_groupings_2()¶
Tests the groupings given a file
test.test_google_search module¶
test.test_integration module¶
- test.test_integration.test_chunks()¶
Given the arp file, tests that the tools are able to extract words, form groupings, and extract_noun_chunks
- test.test_integration.test_construct_search_query()¶
Given the arp file, tests that the tools are able to contruct_search_query
- test.test_integration.test_duplicate_word_removal()¶
Given the arp file, tests that the tools are able to duplicate_word_removal
- test.test_integration.test_groupings()¶
Given the ARP file, tests that the tools are able to extract words and form groupings
- test.test_integration.test_merge_slide_with_same_headers()¶
Given the arp file, tests that the tools are able to merge_slide_with_same_headers
test.test_wordprocessing module¶
- class test.test_wordprocessing.TestWordProcessing(methodName='runTest')¶
Bases:
unittest.case.TestCase
- setUp() None ¶
Hook method for setting up the test fixture before exercising it.
- test_construct_search_query()¶
Test the search query method
- test_duplicate_word_removal()¶
Tests the duplicate_word_removal method
- test_extract_noun_chunks()¶
Test the extract_noun_chunks method
- test_keyword_extractor()¶
Tests the keyword_extractor method
- test_merge_slide_with_same_header()¶
Tests the merge_slide_with_same_header method
- test_merge_slide_with_same_slide_number()¶
Tests the merge_slide_with_same_slide_number method