We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 397ed72 commit 6f1077dCopy full SHA for 6f1077d
tests/pdfkit-tests.py
@@ -6,6 +6,10 @@
6
import unittest
7
8
9
+if sys.version_info[0] == 2 and sys.version_info[1] == 7:
10
+ unittest.TestCase.assertRegex = unittest.TestCase.assertRegexpMatches
11
+
12
13
#Prepend ../ to PYTHONPATH so that we can import PDFKIT form there.
14
TESTS_ROOT = os.path.abspath(os.path.dirname(__file__))
15
sys.path.insert(0, os.path.realpath(os.path.join(TESTS_ROOT, '..')))
@@ -80,9 +84,9 @@ def test_options_parsing_with_tuple_no_dashes(self):
80
84
def test_repeatable_options(self):
81
85
roptions = {
82
86
'--page-size': 'Letter',
83
- 'cookies': [
87
+ 'cookies': [
88
('test_cookie1','cookie_value1'),
- ('test_cookie2','cookie_value2'),
89
+ ('test_cookie2','cookie_value2'),
90
]
91
}
92
0 commit comments