mirror of
https://github.com/pinry/pinry.git
synced 2025-11-13 00:25:41 +01:00
Update logo location to use docs logos
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# 
|
# 
|
||||||
|
|
||||||
The open-source core of Pinry, a tiling image board system for people
|
The open-source core of Pinry, a tiling image board system for people
|
||||||
who want to save, tag, and share images, videos and webpages in an easy
|
who want to save, tag, and share images, videos and webpages in an easy
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ from core.models import Pin, Image
|
|||||||
|
|
||||||
|
|
||||||
def mock_requests_get(url, **kwargs):
|
def mock_requests_get(url, **kwargs):
|
||||||
response = mock.Mock(content=open('logo.png', 'rb').read())
|
response = mock.Mock(content=open('docs/src/imgs/logo-dark.png', 'rb').read())
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ from core.models import Pin, Image
|
|||||||
from users.models import User
|
from users.models import User
|
||||||
|
|
||||||
|
|
||||||
TEST_IMAGE_PATH = 'logo.png'
|
TEST_IMAGE_PATH = 'docs/src/imgs/logo-dark.png'
|
||||||
|
|
||||||
|
|
||||||
def create_user(username):
|
def create_user(username):
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ class CreateImageTest(TestCase):
|
|||||||
Image.objects.all().delete()
|
Image.objects.all().delete()
|
||||||
|
|
||||||
def test_post(self):
|
def test_post(self):
|
||||||
with open('logo.png', mode='rb') as image:
|
with open('docs/src/imgs/logo-dark.png', mode='rb') as image:
|
||||||
response = self.client.post(reverse('image-list'), {'image': image})
|
response = self.client.post(reverse('image-list'), {'image': image})
|
||||||
image = Image.objects.latest('pk')
|
image = Image.objects.latest('pk')
|
||||||
self.assertEqual(response.json()['id'], image.pk)
|
self.assertEqual(response.json()['id'], image.pk)
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ from .models import User
|
|||||||
|
|
||||||
|
|
||||||
def mock_requests_get(url, headers=None):
|
def mock_requests_get(url, headers=None):
|
||||||
response = mock.Mock(content=open('logo.png', 'rb').read())
|
response = mock.Mock(content=open('docs/src/imgs/logo-dark.png', 'rb').read())
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user