mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
Remove fixtures from version control.
(imported from commit 32f17aa1b674e47d730a00cced8b5bed8a136755)
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -6,6 +6,9 @@ from django.db.models import Q
|
||||
from zephyr.models import Zephyr, UserProfile, ZephyrClass, Recipient, Subscription, filter_by_subscriptions
|
||||
|
||||
import datetime
|
||||
import os
|
||||
import subprocess
|
||||
subprocess.call("zephyr/tests/generate-fixtures");
|
||||
|
||||
class AuthedTestCase(TestCase):
|
||||
def login(self, username, password):
|
||||
@@ -203,3 +206,4 @@ class ClassZephyrsTest(AuthedTestCase):
|
||||
|
||||
self.assertEqual(old_non_subscriber_zephyrs, new_non_subscriber_zephyrs)
|
||||
self.assertEqual(new_subscriber_zephyrs, [elt + 1 for elt in old_subscriber_zephyrs])
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
mkdir -p zephyr/fixtures
|
||||
python manage.py dumpdata auth.User zephyr.UserProfile zephyr.ZephyrClass zephyr.Recipient zephyr.Subscription zephyr.Zephyr > zephyr/fixtures/zephyrs.json
|
||||
|
||||
Reference in New Issue
Block a user