# Path: tests/base.py
# class BaseFacebookAPITestCase(RestSocialMixin, FacebookOAuth2Test):
# 
#     def do_rest_login(self):
#         start_url = self.backend.start().url
#         self.auth_handlers(start_url)
# 
# class BaseTwitterApiTestCase(RestSocialMixin, TwitterOAuth1Test):
# 
#     def do_rest_login(self):
#         self.request_token_handler()
#         start_url = self.backend.start().url
#         self.auth_handlers(start_url)


from django.test import override_settings
from django.urls import reverse
from rest_framework.test import APITestCase
from rest_framework_simplejwt.authentication import JWTAuthentication
from social_core.utils import parse_qs
from .base import BaseFacebookAPITestCase, BaseTwitterApiTestCase



jwt_simple_override_settings = dict(
    INSTALLED_APPS=[
        'django.contrib.contenttypes',
        'rest_framework',
        'social_django',
        'rest_social_auth',
        'users',
    ],
    MIDDLEWARE=[],
)


@override_settings(**jwt_simple_override_settings)

# Path: tests/base.py
# class BaseFacebookAPITestCase(RestSocialMixin, FacebookOAuth2Test):
# 
#     def do_rest_login(self):
#         start_url = self.backend.start().url
#         self.auth_handlers(start_url)
# 
# class BaseTwitterApiTestCase(RestSocialMixin, TwitterOAuth1Test):
# 
#     def do_rest_login(self):
#         self.request_token_handler()
#         start_url = self.backend.start().url
#         self.auth_handlers(start_url)


# Path: tests/test_simple_jwt.py
from django.test import override_settings
from django.urls import reverse
from rest_framework.test import APITestCase
from rest_framework_simplejwt.authentication import JWTAuthentication
from social_core.utils import parse_qs
from .base import BaseFacebookAPITestCase, BaseTwitterApiTestCase




jwt_simple_override_settings = dict(
    INSTALLED_APPS=[
        'django.contrib.contenttypes',
        'rest_framework',
        'social_django',
        'rest_social_auth',
        'users',
    ],
    MIDDLEWARE=[],
)


@override_settings(**jwt_simple_override_settings)

class TestSocialAuth1SimpleJWT(APITestCase, BaseTwitterApiTestCase):