Move testdummy plugin to the test directory

This commit is contained in:
Raphael Michel
2015-06-03 18:14:05 +02:00
parent fad8605aa7
commit 6c3df1e3f5
7 changed files with 12 additions and 8 deletions

View File

@@ -49,9 +49,9 @@ class PluginSignalTest(TestCase):
self.assertEqual(len(responses), 0)
def test_one_plugin_active(self):
self.event.plugins = 'pretix.plugins.testdummy'
self.event.plugins = 'tests.testdummy'
self.event.save()
payload = {'foo': 'bar'}
responses = determine_availability.send(self.event, **payload)
self.assertEqual(len(responses), 1)
self.assertIn('pretix.plugins.testdummy.signals', [r[0].__module__ for r in responses])
self.assertIn('tests.testdummy.signals', [r[0].__module__ for r in responses])