webhooks: Move all fixtures to zerver/webhooks/<webhook_name>/fixtures.

All webhook fixtures in zerver/fixtures/<webhook_name> have now
been moved to dedicated webhook-specific directories under
zerver/webhooks/<webhook_name>/fixtures, where <webhook_name> is
the name of the webhook.
This commit is contained in:
Eeshan Garg
2017-04-27 16:49:05 -02:30
committed by Tim Abbott
parent dcc2b3a900
commit aa12002be7
381 changed files with 414 additions and 39 deletions

View File

@@ -410,7 +410,7 @@ class ZulipTestCase(TestCase):
def fixture_data(self, type, action, file_type='json'):
# type: (Text, Text, Text) -> Text
return force_text(open(os.path.join(os.path.dirname(__file__),
"../fixtures/%s/%s_%s.%s" % (type, type, action, file_type))).read())
"../webhooks/%s/fixtures/%s_%s.%s" % (type, type, action, file_type))).read())
def make_stream(self, stream_name, realm=None, invite_only=False):
# type: (Text, Optional[Realm], Optional[bool]) -> Stream