From 14fbd48817ba27853a45164908d10ed679acac6e Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 6 Oct 2014 12:55:12 +0200 Subject: [PATCH] Disable test for unsupported behaviour in pictures. --- setup.cfg | 9 --------- tests/files/picture/angelus-novus.xml | 2 +- tests/test_picture.py | 3 ++- 3 files changed, 3 insertions(+), 11 deletions(-) delete mode 100644 setup.cfg diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 54c0b24..0000000 --- a/setup.cfg +++ /dev/null @@ -1,9 +0,0 @@ -[nosetests] -detailed-errors=1 -with-coverage=1 -cover-package=librarian -cover-erase=1 -with-doctest=1 -exclude= - formats - tests,test_html_annotations diff --git a/tests/files/picture/angelus-novus.xml b/tests/files/picture/angelus-novus.xml index 964faed..85fa554 100644 --- a/tests/files/picture/angelus-novus.xml +++ b/tests/files/picture/angelus-novus.xml @@ -36,7 +36,7 @@
-
+ diff --git a/tests/test_picture.py b/tests/test_picture.py index f64f624..1169f44 100644 --- a/tests/test_picture.py +++ b/tests/test_picture.py @@ -42,7 +42,8 @@ def test_wlpicture(): def test_picture_parts(): wlp = picture.WLPicture.from_file(open(get_fixture('picture', 'angelus-novus.xml'))) parts = list(wlp.partiter()) - assert len(parts) == 5, "there should be %d parts of the picture" % 5 + expect_parts = 4 + assert len(parts) == expect_parts, "there should be %d parts of the picture" % expect_parts motifs = set() names = set() -- 2.20.1