[Python-modules-commits] r32258 - in packages/sphinx/trunk/debian (3 files)
mitya57 at users.alioth.debian.org
mitya57 at users.alioth.debian.org
Fri Apr 10 14:04:40 UTC 2015
Date: Friday, April 10, 2015 @ 14:04:39
Author: mitya57
Revision: 32258
Update JS tests for the new version.
Modified:
packages/sphinx/trunk/debian/changelog
packages/sphinx/trunk/debian/jstest/jstest.py
packages/sphinx/trunk/debian/jstest/run-tests
Modified: packages/sphinx/trunk/debian/changelog
===================================================================
--- packages/sphinx/trunk/debian/changelog 2015-04-10 13:14:48 UTC (rev 32257)
+++ packages/sphinx/trunk/debian/changelog 2015-04-10 14:04:39 UTC (rev 32258)
@@ -23,6 +23,7 @@
* Simplify debian/rules:
- Adjust for using upstream tarballs.
- Do not mention site-packages anymore.
+ * Update JS tests for the new version.
* Add a patch to skip JS libraries versions check.
* Drop 2to3 call from debian/tests/python3-sphinx.
* Properly clean up after running tests.
Modified: packages/sphinx/trunk/debian/jstest/jstest.py
===================================================================
--- packages/sphinx/trunk/debian/jstest/jstest.py 2015-04-10 13:14:48 UTC (rev 32257)
+++ packages/sphinx/trunk/debian/jstest/jstest.py 2015-04-10 14:04:39 UTC (rev 32258)
@@ -2,7 +2,7 @@
# encoding=UTF-8
# Copyright © 2011 Jakub Wilk <jwilk at debian.org>
-# © 2013-2014 Dmitry Shachnev <mitya57 at debian.org>
+# © 2013-2015 Dmitry Shachnev <mitya57 at debian.org>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
@@ -100,7 +100,7 @@
if options.n_results is not None:
def test_n_results(self):
match = re_done.search(html)
- self.assertFalse(match is None)
+ self.assertIsNotNone(match)
n_results = int(match.group(1))
self.assertEqual(n_results, options.n_results)
Modified: packages/sphinx/trunk/debian/jstest/run-tests
===================================================================
--- packages/sphinx/trunk/debian/jstest/run-tests 2015-04-10 13:14:48 UTC (rev 32257)
+++ packages/sphinx/trunk/debian/jstest/run-tests 2015-04-10 14:04:39 UTC (rev 32258)
@@ -7,15 +7,15 @@
class t1:
search_term = 'example'
- n_results = 26
- n_links = 26
- n_highlights = 24
+ n_results = 14
+ n_links = 14
+ n_highlights = 12
class t2:
search_term = 'examples'
- n_results = 26
- n_links = 26
- n_highlights = 7
+ n_results = 14
+ n_links = 14
+ n_highlights = 3
class t3:
search_term = 'graph'
More information about the Python-modules-commits
mailing list