14 lines
394 B
Python
14 lines
394 B
Python
|
from rest_framework.test import APITestCase
|
||
|
|
||
|
|
||
|
class UserausfallAPITestCase(APITestCase):
|
||
|
base_url = "/api"
|
||
|
|
||
|
def get_api_url(self, url, **kwargs):
|
||
|
"""
|
||
|
Prepend the path to the full url for this test class.
|
||
|
:param url: an url fragment
|
||
|
:return: the url fragment prepended with the base url
|
||
|
"""
|
||
|
return f"{self.base_url}{url.format(**kwargs)}"
|