def test_transmit_course_metadata_task_no_channel(self):
"""
Test the data transmission task without any integrated channel.
"""
user = factories.UserFactory(username='john_doe')
factories.EnterpriseCustomerFactory(
catalog=1,
name='Veridian Dynamics',
)
# Remove all integrated channels
SAPSuccessFactorsEnterpriseCustomerConfiguration.objects.all().delete()
DegreedEnterpriseCustomerConfiguration.objects.all().delete()
with LogCapture(level=logging.INFO) as log_capture:
call_command('transmit_course_metadata', '--catalog_user', user.username)
# Because there are no IntegratedChannels, the process will end early.
assert not log_capture.records
评论列表
文章目录