We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bd73d2 commit 5077924Copy full SHA for 5077924
1 file changed
tests/pdfkit-tests.py
@@ -107,6 +107,21 @@ def test_repeatable_options(self):
107
self.assertTrue(test_command[idx3 + 1] == 'test_cookie2')
108
self.assertTrue(test_command[idx3 + 2] == 'cookie_value2')
109
110
+ def test_empty_cookie_value(self):
111
+ roptions = {
112
+ '--page-size': 'Letter',
113
+ 'cookies': [
114
+ ('test_cookie1',''),
115
+ ('test_cookie2','cookie_value2'),
116
+ ]
117
+ }
118
+
119
+ r = pdfkit.PDFKit('html', 'string', options=roptions)
120
121
+ test_command = r.command('test')
122
123
+ self.assertTrue(test_command[idx1 + 1] == 'Letter')
124
125
def test_custom_configuration(self):
126
conf = pdfkit.configuration()
127
self.assertEqual('pdfkit-', conf.meta_tag_prefix)
0 commit comments