Skip to content

[MIG][10.0][html_text] Migrate - #874

Merged
pedrobaeza merged 5 commits into
OCA:10.0from
Tecnativa:10.0-html_text
Jul 17, 2017
Merged

[MIG][10.0][html_text] Migrate #874
pedrobaeza merged 5 commits into
OCA:10.0from
Tecnativa:10.0-html_text

Conversation

@yajo

@yajo yajo commented Jun 22, 2017

Copy link
Copy Markdown
Member

@yajo yajo self-assigned this Jun 22, 2017
@yajo yajo added this to the 10.0 milestone Jun 22, 2017
@pedrobaeza pedrobaeza mentioned this pull request Jun 22, 2017
63 tasks
@pedrobaeza

Copy link
Copy Markdown
Member

Check Travis status

@chienandalu chienandalu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review ok. Travis fails are just logged exceptions as expected from the tests behavior.

@pedrobaeza

Copy link
Copy Markdown
Member

Travis should be green

@pedrobaeza

Copy link
Copy Markdown
Member

The same as the other PR

with self.assertRaises(TypeError):
self.text_from_html(False, fail=True)

def test_bad_html(self):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use @tools.mute_logger() to silent traceback logging expected errors.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+    @odoo.tools.mute_logger('odoo.addons.html_text.models.ir_fields_converter')
    def test_bad_html(self):

Or

-     with self.assertRaises(etree.ParserError):
+     with self.assertRaises(etree.ParserError), odoo.tools.mute_logger('odoo.addons.html_text.models.ir_fields_converter'):

@pedrobaeza

Copy link
Copy Markdown
Member

Please squash your commits to merge.

yajo and others added 5 commits July 17, 2017 09:41
* [8.0][html_text] Excerpt generator.

This module adds a technical utility to allow the developer to get an excerpt from any HTML chunk.

You can choose the maximum amount of words or characters if you want.

See the README and inline docstrings for further details.
@yajo
yajo force-pushed the 10.0-html_text branch from d577616 to 6bead13 Compare July 17, 2017 07:41
@yajo

yajo commented Jul 17, 2017

Copy link
Copy Markdown
Member Author

done

@pedrobaeza
pedrobaeza merged commit 120ba68 into OCA:10.0 Jul 17, 2017
@pedrobaeza
pedrobaeza deleted the 10.0-html_text branch July 17, 2017 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants