def test_approve(self): auto_approve_po_entries( os.path.join(TEST_PATH, "temp_files", "approve.pot")) po_file = polib.pofile( os.path.join(TEST_PATH, "temp_files", "approve.pot")) self.assertEqual( [entry.msgstr for entry in po_file.translated_entries()], [":hardlink:`MongoDB-manual.epub`"])
def auto_approve_obvious_po(args): auto_approve_po_entries(args.t_input_file)
def test_approve(self): auto_approve_po_entries(os.path.join(TEST_PATH, "temp_files", "approve.pot")) po_file = polib.pofile(os.path.join(TEST_PATH, "temp_files", "approve.pot")) self.assertEqual([entry.msgstr for entry in po_file.translated_entries()], [":hardlink:`MongoDB-manual.epub`"])