File: 0001-Skip-tests-that-require-tabula-py-not-available-in-d.patch

package info (click to toggle)
fpdf2 2.8.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 53,828 kB
  • sloc: python: 39,486; sh: 133; makefile: 12
file content (46 lines) | stat: -rw-r--r-- 1,598 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
From: Elena ``of Valhalla'' Grandi <valhalla@debian.org>
Date: Wed, 25 Oct 2023 11:44:18 +0200
Subject: Skip tests that require tabula-py (not available in debian)

Forwarded: not-needed
---
 test/table/test_table_extraction.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/table/test_table_extraction.py b/test/table/test_table_extraction.py
index 8f9f77b..8a52545 100644
--- a/test/table/test_table_extraction.py
+++ b/test/table/test_table_extraction.py
@@ -10,7 +10,6 @@ import camelot
 from pandas import DataFrame
 from pandas.testing import assert_frame_equal
 import pytest
-import tabula
 
 from test.table.test_table import TABLE_DATA
 
@@ -79,7 +78,7 @@ if sys.platform not in ("cygwin", "win32", "darwin"):
 ################################### tabula ####################################
 ###############################################################################
 
-
+@pytest.mark.skip(reason="tabula-py is not available in debian")
 @pytest.mark.parametrize(
     "filename",
     (
@@ -98,6 +97,7 @@ def test_tabula_extract_simple_table(filename):
         assert_frame_equal(df, TABLE_DATA_AS_DF, check_names=False)
 
 
+@pytest.mark.skip(reason="tabula-py is not available in debian")
 @pytest.mark.parametrize(
     "filename",
     (
@@ -113,6 +113,7 @@ def test_tabula_extract_two_tables(filename):
         assert_frame_equal(df, TABLE_DATA_AS_DF, check_names=False)
 
 
+@pytest.mark.skip(reason="tabula-py is not available in debian")
 @pytest.mark.xfail(
     reason="tabula does not successfully parse tables split on several pages"
 )