mirror of https://github.com/zulip/zulip.git
webhooks: Rename webhook fixtures to only include event type.
All webhook fixtures have now been renamed from <webhook_name>/fixtures/<webhook_name>_<event_type>.json to <webhook_name>/fixtures/<event_type>.json.
This commit is contained in:
parent
acb3c1e7ff
commit
597db11a98
|
@ -431,7 +431,7 @@ class ZulipTestCase(TestCase):
|
||||||
def fixture_data(self, type, action, file_type='json'):
|
def fixture_data(self, type, action, file_type='json'):
|
||||||
# type: (Text, Text, Text) -> Text
|
# type: (Text, Text, Text) -> Text
|
||||||
return force_text(open(os.path.join(os.path.dirname(__file__),
|
return force_text(open(os.path.join(os.path.dirname(__file__),
|
||||||
"../webhooks/%s/fixtures/%s_%s.%s" % (type, type, action, file_type))).read())
|
"../webhooks/%s/fixtures/%s.%s" % (type, action, file_type))).read())
|
||||||
|
|
||||||
def make_stream(self, stream_name, realm=None, invite_only=False):
|
def make_stream(self, stream_name, realm=None, invite_only=False):
|
||||||
# type: (Text, Optional[Realm], Optional[bool]) -> Stream
|
# type: (Text, Optional[Realm], Optional[bool]) -> Stream
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue