devel: Add test for rematch_developers

This commit is contained in:
Jelle van der Waa 2018-08-12 19:05:21 +02:00
parent 8dcc8c0a70
commit d1e272d19b

View File

@ -0,0 +1,14 @@
from mock import patch
from django.core.management import call_command
from django.test import TransactionTestCase
class RepoReadTest(TransactionTestCase):
fixtures = ['main/fixtures/arches.json', 'main/fixtures/repos.json']
def test_rematch_developers(self):
with patch('devel.management.commands.rematch_developers.logger') as logger:
call_command('rematch_developers')
logger.info.assert_called()