Skip to content
This repository was archived by the owner on Nov 26, 2018. It is now read-only.

Commit 0634636

Browse files
author
Brian Luft
committed
Merge pull request #95 from BotBotMe/fix-test-suite
Fix test suite
2 parents 4fe2ca6 + b5221f1 commit 0634636

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

botbot/apps/bots/admin.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313

1414
class PluginFormset(BaseInlineFormSet):
1515
def __init__(self, *args, **kwargs):
16-
if not kwargs['instance'].pk:
17-
defaults = Plugin.objects.filter(
18-
slug__in=models.Channel.DEFAULT_PLUGINS)
19-
20-
kwargs['initial'] = [{"plugin": obj.pk} for obj in defaults]
2116
super(PluginFormset, self).__init__(*args, **kwargs)
2217

2318

@@ -26,8 +21,6 @@ class ActivePluginInline(admin.StackedInline):
2621
formset = PluginFormset
2722

2823
def get_extra(self, request, obj=None, **kwargs):
29-
if obj is None:
30-
return len(models.Channel.DEFAULT_PLUGINS)
3124
return 0
3225

3326

botbot/apps/bots/tests.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ def setUp(self):
4848
user=self.member, channel=self.private_channel, is_owner=True,
4949
is_admin=True)
5050

51-
for plugin in models.Channel.DEFAULT_PLUGINS:
52-
models.Plugin.objects.create(name=plugin, slug=plugin)
53-
5451

5552
class ModelTests(BaseTestCase):
5653

botbot/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,3 +297,5 @@
297297
STATSD_PREFIX = os.environ.get('STATSD_PREFIX', 'bbme')
298298

299299
DJANGO_HSTORE_ADAPTER_REGISTRATION = 'connection'
300+
301+
SOUTH_TESTS_MIGRATE = False

0 commit comments

Comments
 (0)