diff --git a/tcms_settings_dir/marketplace.py b/tcms_settings_dir/marketplace.py deleted file mode 100644 index 4f4e87b..0000000 --- a/tcms_settings_dir/marketplace.py +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) 2020 Alexander Todorov - -# Licensed under the GPL 3.0: https://www.gnu.org/licenses/gpl-3.0.txt -# pylint: disable=undefined-variable - -if 'tcms_github_marketplace.views.PurchaseHook' not in PUBLIC_VIEWS: # noqa: F821 - PUBLIC_VIEWS.append('tcms_github_marketplace.views.PurchaseHook') # noqa: F821 - -if 'tcms_github_marketplace.views.FastSpringHook' not in PUBLIC_VIEWS: # noqa: F821 - PUBLIC_VIEWS.append('tcms_github_marketplace.views.FastSpringHook') # noqa: F821 diff --git a/test_project/settings.py b/test_project/settings.py index 6803b18..fa903c8 100644 --- a/test_project/settings.py +++ b/test_project/settings.py @@ -34,16 +34,6 @@ sys.exit(1) -# import the settings which automatically get distributed with this package -marketplace_settings = os.path.join( - BASE_DIR, 'tcms_settings_dir', 'marketplace.py') - -# Kiwi TCMS loads extra settings in the same way using exec() -exec( # pylint: disable=exec-used - open(marketplace_settings, "rb").read(), - globals() -) - # these are enabled only for testing purposes DEBUG = True TEMPLATE_DEBUG = True @@ -62,12 +52,6 @@ 'social_django', ]) -PUBLIC_VIEWS.extend([ - 'social_django.views.auth', - 'social_django.views.complete', - 'social_django.views.disconnect', -]) - SOCIAL_AUTH_URL_NAMESPACE = 'social' SOCIAL_AUTH_GITHUB_KEY = 'oauth_client_id'