Files
zulip/zerver/tests/test_integrations.py
Tomasz Kolek 0e33b8bd4d Add integrations library.
Define Integration and WebhookIntegration classes.
Change webhook part of integration's guide.
Replace hardcoded webhook urls to generating
based on WEBHOOKS list.
2016-08-04 11:39:20 -07:00

14 lines
444 B
Python

# -*- coding: utf-8 -*-
from __future__ import absolute_import
import os
from django.test import TestCase
from zproject.settings import DEPLOY_ROOT
from zerver.lib.integrations import INTEGRATIONS
class IntegrationTestCase(TestCase):
def test_check_if_every_integration_has_logo_that_exists(self):
for integration in INTEGRATIONS.values():
self.assertTrue(os.path.isfile(os.path.join(DEPLOY_ROOT, integration.logo)))