zulip/zephyr/tests/generate-fixtures

10 lines
464 B
Plaintext
Raw Normal View History

#!/bin/sh
mkdir -p zephyr/fixtures
rm -f zephyr/tests/zephyrdb.test
python manage.py syncdb --noinput --settings=humbug.test_settings
python manage.py populate_db --settings=humbug.test_settings -n20
python manage.py dumpdata --settings=humbug.test_settings \
auth.User zephyr.UserProfile zephyr.Stream zephyr.Recipient \
zephyr.Subscription zephyr.Message zephyr.Huddle zephyr.Realm \
zephyr.UserMessage zephyr.Client > zephyr/fixtures/messages.json