mirror of
https://github.com/pinry/pinry.git
synced 2025-11-14 17:05:50 +01:00
Fix: Fix test-failure for request-test
This commit is contained in:
@@ -9,7 +9,7 @@ from core.models import Image, Pin
|
|||||||
from .models import User
|
from .models import User
|
||||||
|
|
||||||
|
|
||||||
def mock_requests_get(url):
|
def mock_requests_get(url, headers=None):
|
||||||
response = mock.Mock(content=open('logo.png', 'rb').read())
|
response = mock.Mock(content=open('logo.png', 'rb').read())
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user