diff tests/mockutil.py @ 59:b404445082f8

Prevent unit tests from downloading fake posts
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 28 Oct 2023 11:54:24 -0700
parents 27543b2e73b9
children
line wrap: on
line diff
--- a/tests/mockutil.py	Sat Oct 28 11:52:25 2023 -0700
+++ b/tests/mockutil.py	Sat Oct 28 11:54:24 2023 -0700
@@ -6,7 +6,7 @@
     return m
 
 
-def _patched_urlretrieve(url):
+def _patched_urlretrieve(url, filename=None):
     return ('/retrieved/' + url.lstrip('/'), None)