From 895f081f74ce3f116bebb4ef76f5ab3d2e392fef Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Rekucki?= Date: Fri, 19 Mar 2010 15:57:56 +0100 Subject: [PATCH 1/1] Fixed to run and pass all tests. --- librarian/__init__.py | 4 ---- librarian/dcparser.py | 0 librarian/html.py | 0 librarian/parser.py | 0 librarian/text.py | 0 librarian/xslt/book2html.xslt | 8 ++++---- scripts/normalize.py | 0 setup.py | 0 tests/__init__.py | 0 tests/test_dcparser.py | 0 tests/test_html.py | 1 - tests/test_text.py | 0 tests/utils.py | 2 +- 13 files changed, 5 insertions(+), 10 deletions(-) mode change 100755 => 100644 librarian/__init__.py mode change 100755 => 100644 librarian/dcparser.py mode change 100755 => 100644 librarian/html.py mode change 100755 => 100644 librarian/parser.py mode change 100755 => 100644 librarian/text.py mode change 100755 => 100644 scripts/normalize.py mode change 100755 => 100644 setup.py mode change 100755 => 100644 tests/__init__.py mode change 100755 => 100644 tests/test_dcparser.py mode change 100755 => 100644 tests/test_html.py mode change 100755 => 100644 tests/test_text.py mode change 100755 => 100644 tests/utils.py diff --git a/librarian/__init__.py b/librarian/__init__.py old mode 100755 new mode 100644 index 34c493b..582ee98 --- a/librarian/__init__.py +++ b/librarian/__init__.py @@ -117,12 +117,8 @@ def serialize_raw(element): return b -from wl_light import serialize_nl - - SERIALIZERS = { 'raw': serialize_raw, - 'nl': serialize_nl, } def serialize_children(element, format='raw'): diff --git a/librarian/dcparser.py b/librarian/dcparser.py old mode 100755 new mode 100644 diff --git a/librarian/html.py b/librarian/html.py old mode 100755 new mode 100644 diff --git a/librarian/parser.py b/librarian/parser.py old mode 100755 new mode 100644 diff --git a/librarian/text.py b/librarian/text.py old mode 100755 new mode 100644 diff --git a/librarian/xslt/book2html.xslt b/librarian/xslt/book2html.xslt index 3a13737..80f8c63 100755 --- a/librarian/xslt/book2html.xslt +++ b/librarian/xslt/book2html.xslt @@ -435,11 +435,11 @@ - + - + @@ -477,11 +477,11 @@ -

+

-
+
diff --git a/scripts/normalize.py b/scripts/normalize.py old mode 100755 new mode 100644 diff --git a/setup.py b/setup.py old mode 100755 new mode 100644 diff --git a/tests/__init__.py b/tests/__init__.py old mode 100755 new mode 100644 diff --git a/tests/test_dcparser.py b/tests/test_dcparser.py old mode 100755 new mode 100644 diff --git a/tests/test_html.py b/tests/test_html.py old mode 100755 new mode 100644 index dcb19fc..6914066 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -23,7 +23,6 @@ from librarian import html, NoDublinCore from nose.tools import * from utils import get_fixture, remove_output_file - def teardown_transform(): remove_output_file('text', 'asnyk_miedzy_nami.html') diff --git a/tests/test_text.py b/tests/test_text.py old mode 100755 new mode 100644 diff --git a/tests/utils.py b/tests/utils.py old mode 100755 new mode 100644 index ea90626..0c6f8d4 --- a/tests/utils.py +++ b/tests/utils.py @@ -19,11 +19,11 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # +from __future__ import with_statement from os.path import realpath, join, dirname import glob import os - def get_fixture_dir(dir_name): """Returns path to fixtures directory dir_name.""" return realpath(join(dirname(__file__), 'files', dir_name)) -- 2.20.1