Move test_data, add regression_test make command

0.3.0.dev
Richard Harding 12 years ago
parent 5222ed0628
commit 6d3ad559f6

@ -16,6 +16,11 @@ test: venv $(NOSE)
$(NOSE):
$(PY) setup.py test
.PHONY: regression_test
regression_test:
$(PY) src/tests/regression.py unittest
# #######
# INSTALL
# #######

@ -95,7 +95,7 @@ def load_readability_tests(dir_path, files):
def execute_test(test_data):
doc = readability.Document(test_data.orig_html)
summary = doc.summary()
summary = doc.summary_with_metadata()
benchmark_doc = (test_data.rdbl_html, 'benchmark')
result_doc = (summary.html, 'result')
# diff = lxml.html.diff.html_annotate([benchmark_doc, result_doc])

Loading…
Cancel
Save