[Python-apps-commits] r13807 - in packages/hovercraft/trunk/debian (3 files)
stender at users.alioth.debian.org
stender at users.alioth.debian.org
Sat Dec 17 21:36:57 UTC 2016
Date: Saturday, December 17, 2016 @ 21:36:52
Author: stender
Revision: 13807
add test_parse-no-hardcoded-docutils.diff
Added:
packages/hovercraft/trunk/debian/patches/test_parse-no-hardcoded-docutils.diff
Modified:
packages/hovercraft/trunk/debian/changelog
packages/hovercraft/trunk/debian/patches/series
Modified: packages/hovercraft/trunk/debian/changelog
===================================================================
--- packages/hovercraft/trunk/debian/changelog 2016-12-17 18:22:06 UTC (rev 13806)
+++ packages/hovercraft/trunk/debian/changelog 2016-12-17 21:36:52 UTC (rev 13807)
@@ -1,3 +1,9 @@
+hovercraft (2.1-2) UNRELEASED; urgency=medium
+
+ * add test_parse-no-hardcoded-docutils.diff (Closes: #848034).
+
+ -- Daniel Stender <stender at debian.org> Sat, 17 Dec 2016 22:36:31 +0100
+
hovercraft (2.1-1) unstable; urgency=medium
* New upstream release (Closes: #813159).
Modified: packages/hovercraft/trunk/debian/patches/series
===================================================================
--- packages/hovercraft/trunk/debian/patches/series 2016-12-17 18:22:06 UTC (rev 13806)
+++ packages/hovercraft/trunk/debian/patches/series 2016-12-17 21:36:52 UTC (rev 13807)
@@ -1,2 +1,3 @@
console-script.diff
improve-docs.diff
+test_parse-no-hardcoded-docutils.diff
Added: packages/hovercraft/trunk/debian/patches/test_parse-no-hardcoded-docutils.diff
===================================================================
--- packages/hovercraft/trunk/debian/patches/test_parse-no-hardcoded-docutils.diff (rev 0)
+++ packages/hovercraft/trunk/debian/patches/test_parse-no-hardcoded-docutils.diff 2016-12-17 21:36:52 UTC (rev 13807)
@@ -0,0 +1,35 @@
+Description: improve test_parse, get rid of hardcoded docutils version
+Origin: https://github.com/regebro/hovercraft/commit/800e22a
+Bug: https://github.com/regebro/hovercraft/issues/122
+Bug-Debian: https://bugs.debian.org/848034
+
+--- a/hovercraft/tests/test_parse.py
++++ b/hovercraft/tests/test_parse.py
+@@ -105,11 +105,11 @@ class SlideMakerTests(unittest.TestCase):
+ b'....\n\nLevel 3\n\n----\n\nLevel 2\n\n....\n\nLevel 3\n\n'
+ b'====\n\nLevel 1')
+
+- target = (
++ target_start = (
+ b'<?xml version="1.0" encoding="utf-8"?>\n<!DOCTYPE document PUBLIC "+'
+ b'//IDN docutils.sourceforge.net//DTD Docutils Generic//EN//XML" '
+- b'"http://docutils.sourceforge.net/docs/ref/docutils.dtd">\n'
+- b'<!-- Generated by Docutils 0.12 -->\n'
++ b'"http://docutils.sourceforge.net/docs/ref/docutils.dtd">\n')
++ target_end = (
+ b'<document source="<string>"><paragraph>Intro</paragraph>'
+ b'<transition level="1"></transition><paragraph>Level 1</paragraph>'
+ b'<transition level="1"></transition><paragraph>Level 1</paragraph>'
+@@ -118,9 +118,9 @@ class SlideMakerTests(unittest.TestCase):
+ b'<transition level="2"></transition><paragraph>Level 2</paragraph>'
+ b'<transition level="3"></transition><paragraph>Level 3</paragraph>'
+ b'<transition level="1"></transition><paragraph>Level 1</paragraph>'
+- b'</document>'
+- )
+- self.assertEqual(xml, target)
++ b'</document>')
++ self.assertTrue(xml.startswith(target_start))
++ self.assertTrue(xml.endswith(target_end))
+
+ # Make the slides:
+ tree = SlideMaker(etree.fromstring(xml)).walk()
More information about the Python-apps-commits
mailing list