File: 0002-mark-new-external-tests-appropriately.patch

package info (click to toggle)
pypdf 3.4.1-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 15,908 kB
  • sloc: python: 31,146; makefile: 44; sh: 2
file content (55 lines) | stat: -rw-r--r-- 1,792 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
47
48
49
50
51
52
53
54
55
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Tue, 14 Feb 2023 17:04:40 -0500
Subject: mark new external tests appropriately

Forwarded: https://github.com/py-pdf/pypdf/pull/1632
---
 tests/test_page.py      | 1 +
 tests/test_workflows.py | 1 +
 tests/test_writer.py    | 2 ++
 3 files changed, 4 insertions(+)

diff --git a/tests/test_page.py b/tests/test_page.py
index aa882ea..87277fe 100644
--- a/tests/test_page.py
+++ b/tests/test_page.py
@@ -1090,6 +1090,7 @@ def test_merge_page_resources_smoke_test():
     assert relevant_operations == expected_operations
 
 
+@pytest.mark.external
 def test_merge_transformed_page_into_blank():
     url = "https://github.com/py-pdf/pypdf/files/10540507/visitcard.pdf"
     name = "visitcard.pdf"
diff --git a/tests/test_workflows.py b/tests/test_workflows.py
index fa9d799..7440612 100644
--- a/tests/test_workflows.py
+++ b/tests/test_workflows.py
@@ -911,6 +911,7 @@ def test_append_forms():
     ) + len(reader2.get_form_text_fields())
 
 
+@pytest.mark.external
 def test_extra_test_iss1541():
     url = "https://github.com/py-pdf/pypdf/files/10418158/tst_iss1541.pdf"
     name = "tst_iss1541.pdf"
diff --git a/tests/test_writer.py b/tests/test_writer.py
index 3f09c4f..b1e6bb1 100644
--- a/tests/test_writer.py
+++ b/tests/test_writer.py
@@ -1154,6 +1154,7 @@ def test_set_page_label():
     os.remove(target)  # comment to see result
 
 
+@pytest.mark.external
 def test_iss1601():
     url = "https://github.com/py-pdf/pypdf/files/10579503/badges-38.pdf"
     name = "badge-38.pdf"
@@ -1177,6 +1178,7 @@ def test_iss1601():
     )
 
 
+@pytest.mark.external
 def test_iss1614():
     # test of an annotation(link) directly stored in the /Annots in the page
     url = "https://github.com/py-pdf/pypdf/files/10669995/broke.pdf"