-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
70 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,38 +10,42 @@ def test_import_gmails(): | |
assert "mbox_emails" in set(db.table_names()) | ||
mbox_emails = list(sorted(db["mbox_emails"].rows, key=lambda r: r["id"])) | ||
assert [ | ||
{'From': '=?UTF-8?Q?=C5=82_Zieli=C5=84ski?= <[email protected]>', | ||
'Subject': '[fw-general] Zend_Form and generating fields', | ||
'To': '[email protected]', | ||
'X-GM-THRID': '1277085061787347926', | ||
'X-Gmail-Labels': 'Unread', | ||
'body': b'\r\nUnfortunately it is slow! For 10 products it takes 0.6 sec. to' | ||
b' generate.\r\nIs there a better (more efficient) method to build s' | ||
b'uch forms via Zend_Form?\r\n\r\nThe same I noticed when tried to' | ||
b' create a select element which contained\r\nmany options (i.e. lis' | ||
b't of countries). Without ajax (autocomplete) it takes\r\nages to g' | ||
b'enerate and seems to be useless in this case. Shame.\r\n\r\nI wo' | ||
b'nder if Zend_Form can be used when it comes to generate a lot of' | ||
b'\r\ninputs/options in select or I`m forced to create it by han' | ||
b'd?\r\n\r\n\r\n\r\n', | ||
'id': '<[email protected]>', | ||
'when': '2008-08-05 08:00:12'}, | ||
{'From': 'Person Person <[email protected]>', | ||
'Subject': 'Re: [Gnumed-devel] Tree view formatting', | ||
'To': '[email protected]', | ||
'X-GM-THRID': '1278204036336346264', | ||
'X-Gmail-Labels': 'Unread', | ||
'body': b'On Sun, Aug 17, 2008 at 03:09:55PM -0300, Bob Luz wrote:\r\n\r\n' | ||
b'> when you say you have changed it ... can I assume it will make' | ||
b' the 0.3.0 release\r\nyes\r\n\r\n> or is the release READY\r\nI ' | ||
b'hope it is "ready" so I can release it within the next few\r\ndays' | ||
b'. I usually wait a few days to see whether any errors\r\nshow up. ' | ||
b"That's why we need you guys to test like mad.\r\n\r\n> and all o" | ||
b'ur future discussions on this list\r\n> will from now on to be imp' | ||
b'lemented on the 0.3.1 ?\r\n\r\nNot quite yet. And, rather 0.3+.\r' | ||
b'\n\r\nPerson\r\n\r\n\r\n_________________________________________' | ||
b'______\r\nGnumed-devel mailing list\r\n[email protected]\r\nhtt' | ||
b'p://lists.gnu.org/mailman/listinfo/gnumed-devel\r\n', | ||
'id': '<[email protected]>', | ||
'when': '2008-08-17 18:39:15'} | ||
] == mbox_emails | ||
{ | ||
"From": "=?UTF-8?Q?=C5=82_Zieli=C5=84ski?= <[email protected]>", | ||
"Subject": "[fw-general] Zend_Form and generating fields", | ||
"To": "[email protected]", | ||
"X-GM-THRID": "1277085061787347926", | ||
"X-Gmail-Labels": "Unread", | ||
"body": b"\r\nUnfortunately it is slow! For 10 products it takes 0.6 sec. to" | ||
b" generate.\r\nIs there a better (more efficient) method to build s" | ||
b"uch forms via Zend_Form?\r\n\r\nThe same I noticed when tried to" | ||
b" create a select element which contained\r\nmany options (i.e. lis" | ||
b"t of countries). Without ajax (autocomplete) it takes\r\nages to g" | ||
b"enerate and seems to be useless in this case. Shame.\r\n\r\nI wo" | ||
b"nder if Zend_Form can be used when it comes to generate a lot of" | ||
b"\r\ninputs/options in select or I`m forced to create it by han" | ||
b"d?\r\n\r\n\r\n\r\n", | ||
"id": "<[email protected]>", | ||
"when": "2008-08-05 08:00:12", | ||
}, | ||
{ | ||
"From": "Person Person <[email protected]>", | ||
"Subject": "Re: [Gnumed-devel] Tree view formatting", | ||
"To": "[email protected]", | ||
"X-GM-THRID": "1278204036336346264", | ||
"X-Gmail-Labels": "Unread", | ||
"body": b"On Sun, Aug 17, 2008 at 03:09:55PM -0300, Bob Luz wrote:\r\n\r\n" | ||
b"> when you say you have changed it ... can I assume it will make" | ||
b" the 0.3.0 release\r\nyes\r\n\r\n> or is the release READY\r\nI " | ||
b'hope it is "ready" so I can release it within the next few\r\ndays' | ||
b". I usually wait a few days to see whether any errors\r\nshow up. " | ||
b"That's why we need you guys to test like mad.\r\n\r\n> and all o" | ||
b"ur future discussions on this list\r\n> will from now on to be imp" | ||
b"lemented on the 0.3.1 ?\r\n\r\nNot quite yet. And, rather 0.3+.\r" | ||
b"\n\r\nPerson\r\n\r\n\r\n_________________________________________" | ||
b"______\r\nGnumed-devel mailing list\r\n[email protected]\r\nhtt" | ||
b"p://lists.gnu.org/mailman/listinfo/gnumed-devel\r\n", | ||
"id": "<[email protected]>", | ||
"when": "2008-08-17 18:39:15", | ||
}, | ||
] == mbox_emails |