Do not include locally installed plugins in test settings

This commit is contained in:
Raphael Michel
2016-11-06 20:01:11 +01:00
parent 7b48a17b51
commit 3ba8647464
2 changed files with 5 additions and 0 deletions

View File

@@ -187,7 +187,9 @@ try:
except ImportError:
pass
PLUGINS = []
for entry_point in iter_entry_points(group='pretix.plugin', name=None):
PLUGINS.append(entry_point.module_name)
INSTALLED_APPS.append(entry_point.module_name)
CORE_MODULES = {

View File

@@ -7,3 +7,6 @@ TEST_DIR = os.path.dirname(__file__)
TEMPLATES[0]['DIRS'].append(os.path.join(TEST_DIR, 'templates')) # NOQA
INSTALLED_APPS.append('tests.testdummy') # NOQA
for a in PLUGINS:
INSTALLED_APPS.remove(a)