gault-millau/apps/utils/tests/tests_permissions.py
Виктор Гладких 046d0c5fe6 Fix country and comment role
2019-10-25 10:59:31 +03:00

20 lines
444 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 = Language.objects.get(
title='Russia',
locale='ru-RU'
)
self.lang.save()
self.country_ru = Country.objects.get(
name={"en-GB": "Russian"}
)
self.country_ru.save()