evorepo/devel/tests/test_rematch_developers.py
Jelle van der Waa da18435177
switch to python3's buildin mock
Instead of using a python module use the build-in mock and remove the
module from requirements.txt
2019-01-28 21:02:39 +01:00

15 lines
458 B
Python

from unittest.mock import patch
from django.core.management import call_command
from django.test import TransactionTestCase
class RematchDeveloperTest(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()