ports/textproc/py-pypandoc/patches/patch-tests_py

15 lines
514 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Tests aren't allowed to make remote connection
Index: tests.py
--- tests.py.orig
+++ tests.py
@@ -228,7 +228,7 @@ class TestPypandoc(unittest.TestCase):
self.assertEqualExceptForNewlineEnd(expected, received)
def test_basic_conversion_from_http_url(self):
- url = 'https://raw.githubusercontent.com/bebraw/pypandoc/master/README.md'
+ url = 'file://'+ os.getcwd() + '/README.md'
received = pypandoc.convert_file(url, 'html')
assert "GPL2 license" in received