_projekt01 | Hi, is it possible to compare html (rendered widget) in functional doc tests (ftests)? I need to compare the spaces in front of a html tags? | 00:09 |
---|---|---|
mgedmin | _projekt01, I'm not sure I understand your question | 00:14 |
mgedmin | you do not need to get the exact same number of spaces in your doctests | 00:15 |
_projekt01 | I need to count the intend in HTML | 00:15 |
mgedmin | functional doctests by default have the doctest NORMALIZE_WHITESPACE flag set | 00:15 |
mgedmin | if you want you test to fail if the indent is wrong, you can turn that flag off | 00:16 |
_projekt01 | And I can't compare something like " <div>", it's the same like "<div>" | 00:16 |
mgedmin | >>> code code code # doctest: -NORMALIZE_WHITESPACE | 00:16 |
mgedmin | you can | 00:16 |
_projekt01 | Ah, Ok a minus, I'll try | 00:16 |
_projekt01 | Thanks | 00:17 |
mgedmin | - turns that option off, + turns it on | 00:17 |
_projekt01 | And do I need to write ... In fornt of the compared string? Or just empty | 00:17 |
mgedmin | note that when NORMALIZE_WHITESPACE is on, if you have other mismatches, you will get a diff that shows the differences in whitespace too | 00:17 |
mgedmin | the diffs are often misleading :-( | 00:18 |
_projekt01 | Ok, I saw this | 00:18 |
mgedmin | ... will match any sequence of characters | 00:18 |
mgedmin | (however you cannot start the expected output with ..., because it looks like a continuation line) | 00:18 |
_projekt01 | Especialy the description in the fields if you write the description in """some text and line break """ you get some wired empty spaces | 00:19 |
_projekt01 | Ok, I think it's no that important to compare the whitespace form widgets. I'll ignore it. | 00:20 |
*** tvon has quit IRC | 00:35 | |
*** GaryPoster has joined #zope3-dev | 00:51 | |
*** tvon has joined #zope3-dev | 00:54 | |
*** hazmat has joined #zope3-dev | 01:02 | |
*** Aiste has quit IRC | 01:09 | |
*** Aiste has joined #zope3-dev | 01:10 | |
*** bradb has quit IRC | 01:14 | |
*** GaryPoster has quit IRC | 01:24 | |
*** jdz_ has quit IRC | 01:29 | |
*** hazmat has quit IRC | 01:54 | |
*** sashav has quit IRC | 01:55 | |
*** hazmat has joined #zope3-dev | 02:08 | |
*** gintas has quit IRC | 02:20 | |
*** BjornT has quit IRC | 02:28 | |
*** GaryPoster has joined #zope3-dev | 02:28 | |
*** GaryPoster has quit IRC | 02:39 | |
*** GaryPoster has joined #zope3-dev | 02:39 | |
*** alga has joined #zope3-dev | 02:40 | |
*** GaryPoster has quit IRC | 02:58 | |
*** Sickblia has joined #zope3-dev | 03:02 | |
*** Sickblia has left #zope3-dev | 03:03 | |
*** Jim7J1AJ1 has quit IRC | 03:03 | |
*** Jim7J1AJH has joined #zope3-dev | 03:03 | |
*** sashav has joined #zope3-dev | 03:07 | |
*** hazmat has quit IRC | 04:06 | |
*** _projekt01 has quit IRC | 04:23 | |
*** sashav has quit IRC | 04:27 | |
*** sashav has joined #zope3-dev | 04:34 | |
*** niemeyer has quit IRC | 05:35 | |
*** alga has quit IRC | 05:43 | |
*** sashav has quit IRC | 06:11 | |
*** mgedmin has quit IRC | 06:56 | |
*** rejj has joined #zope3-dev | 08:38 | |
*** zug has quit IRC | 08:38 | |
*** admp has joined #zope3-dev | 11:08 | |
*** hazmat has joined #zope3-dev | 11:23 | |
*** hazmat has quit IRC | 11:33 | |
*** hazmat has joined #zope3-dev | 11:35 | |
*** bskahan has quit IRC | 11:53 | |
*** GaryPoster has joined #zope3-dev | 11:54 | |
*** hazmat has quit IRC | 12:10 | |
*** d2m has joined #zope3-dev | 13:35 | |
*** BjornT has joined #zope3-dev | 13:50 | |
*** __gotcha_ is now known as __gotchaway | 13:57 | |
*** d2m has quit IRC | 14:42 | |
*** zagy has quit IRC | 15:07 | |
*** gintas has joined #zope3-dev | 15:37 | |
*** GaryPoster has quit IRC | 15:53 | |
*** GaryPoster has joined #zope3-dev | 16:09 | |
*** oferw has joined #zope3-dev | 16:10 | |
*** oferw has quit IRC | 16:52 | |
*** zagy has joined #zope3-dev | 16:52 | |
*** mgedmin has joined #zope3-dev | 17:08 | |
*** bradb has joined #zope3-dev | 17:13 | |
*** zagy has quit IRC | 17:26 | |
*** zagy has joined #zope3-dev | 17:40 | |
*** GaryPoster has quit IRC | 17:43 | |
*** gintas has quit IRC | 17:46 | |
*** niemeyer has joined #zope3-dev | 17:55 | |
*** tav|offline is now known as tav | 18:10 | |
*** zagy_ has joined #zope3-dev | 18:11 | |
*** xena has joined #zope3-dev | 18:21 | |
*** zagy has quit IRC | 18:26 | |
*** xena has quit IRC | 18:37 | |
*** xena has joined #zope3-dev | 18:38 | |
*** zagy_ has quit IRC | 18:44 | |
*** GaryPoster has joined #zope3-dev | 19:05 | |
*** GaryPoster has quit IRC | 19:16 | |
*** GaryPoster has joined #zope3-dev | 19:35 | |
*** zagy_ has joined #zope3-dev | 19:46 | |
*** mgedmin has quit IRC | 19:49 | |
*** WebMaven has joined #zope3-dev | 19:50 | |
*** bskahan has joined #zope3-dev | 19:56 | |
*** GaryPoster has quit IRC | 20:11 | |
*** d2m has joined #zope3-dev | 21:09 | |
*** admp has quit IRC | 21:27 | |
*** tarek_away has joined #zope3-dev | 22:13 | |
*** tarek_away is now known as tarek_ | 22:14 | |
*** projekt01 has joined #zope3-dev | 23:08 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!