gault-millau/apps/utils/tests/tests_permissions.py
Виктор Гладких 86500b6b88 Fix site_id for comment
2019-11-25 11:13:05 +03:00

18 lines
426 B
Python

from rest_framework.test import APITestCase
from location.models import Country
from translation.models import Language
class BasePermissionTests(APITestCase):
def setUp(self):
self.lang, created = Language.objects.get_or_create(
title='Russia',
locale='ru-RU'
)
self.country_ru, created = Country.objects.get_or_create(
name={"en-GB": "Russian"}
)