From bac1006e744187c4b0f0c70754ae5ac5a6145ee2 Mon Sep 17 00:00:00 2001 From: Jamil Atta Junior Date: Wed, 6 Oct 2021 21:58:14 -0300 Subject: [PATCH 1/2] =?UTF-8?q?Remove=20do=20packtools=20a=20responsabilid?= =?UTF-8?q?ade=20de=20gerar=20a=20caixa=20de=20errata=20e=20retrata=C3=A7?= =?UTF-8?q?=C3=A3o.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Importante: foi somente comentado a linha 24 do arquivo article.xsl responsável do criar o HTML dessa caixa e realizado saltos nos testes referente a essa implementação Testes unitários desativados: test_show_retraction_box_if_article_is_an_retraction test_should_translate_retraction_to_english test_do_not_show_retraction_box_if_article_is_not_a_retraction test_show_retraction_box_if_article_is_an_partial_retraction test_presents_link_to_retreted_document_using_pid --- packtools/catalogs/htmlgenerator/v2.0/article.xsl | 5 ++--- tests/test_htmlgenerator.py | 8 ++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/packtools/catalogs/htmlgenerator/v2.0/article.xsl b/packtools/catalogs/htmlgenerator/v2.0/article.xsl index 14100f499..8ed9c5613 100644 --- a/packtools/catalogs/htmlgenerator/v2.0/article.xsl +++ b/packtools/catalogs/htmlgenerator/v2.0/article.xsl @@ -21,7 +21,7 @@ - + @@ -80,7 +80,7 @@ - + @@ -211,7 +211,6 @@ - diff --git a/tests/test_htmlgenerator.py b/tests/test_htmlgenerator.py index 18b50c260..06351ff0c 100644 --- a/tests/test_htmlgenerator.py +++ b/tests/test_htmlgenerator.py @@ -406,6 +406,7 @@ def test_if_history_section_is_present_in_sub_article(self): self.assertIn('Aceito
14 Jan 2019', html_string) self.assertIn('Publicado
31 Maio 2019', html_string) + @unittest.skip("""A caixa de retratação está sendo gerada pela aplicação, caso deseje que seja gerado pelo XSLT descomentar a linha 24 do arquivo article.xsl""") def test_show_retraction_box_if_article_is_an_retraction(self): sample = u"""
Date: Wed, 6 Oct 2021 22:00:25 -0300 Subject: [PATCH 2/2] =?UTF-8?q?Altera=20a=20vers=C3=A3o=20do=20packtools?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packtools/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packtools/version.py b/packtools/version.py index 9dcd6623d..74f3ce855 100644 --- a/packtools/version.py +++ b/packtools/version.py @@ -1,5 +1,5 @@ """Single source to the version across setup.py and the whole project. """ from __future__ import unicode_literals -__version__ = '2.7.4' +__version__ = '2.7.5'