first commit
This commit is contained in:
1
core/apps/shared/tests/__init__.py
Normal file
1
core/apps/shared/tests/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from .test_settings import * # noqa
|
||||
20
core/apps/shared/tests/test_settings.py
Normal file
20
core/apps/shared/tests/test_settings.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import pytest
|
||||
from django.urls import reverse
|
||||
from rest_framework.test import APIClient
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def api_client():
|
||||
return APIClient()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def settings_urls():
|
||||
return {
|
||||
"languages": reverse("settings-languages"),
|
||||
}
|
||||
|
||||
|
||||
def test_languages(api_client, settings_urls):
|
||||
response = api_client.get(settings_urls["languages"])
|
||||
assert response.status_code == 200
|
||||
Reference in New Issue
Block a user