def setup_test_data(self): # make sample data: location, client, show, episode from main.views import make_test_data, del_test_data del_test_data() t=datetime(2010,5,21,0,0,4) self.episode=make_test_data(self.title, start_time = t) return
def setup_test_data(self): # make sample data: location, client, show, episode from main.views import make_test_data, del_test_data del_test_data() t = datetime(2010, 5, 21, 0, 0, 4) self.episode = make_test_data(self.title, start_time=t) return
def setup_test_data(self): # make sample data: location, client, show, episode from main.views import make_test_data, del_test_data del_test_data() self.ep=make_test_data(self.title) return
#!/usr/bin/python import datetime import process from main.models import fnify, Client, Show, Location, Episode, Raw_File, Cut_List from main.views import make_test_data, del_test_data from django.contrib.auth.models import User users=User.objects.all() if not users: user = User.objects.create_user( 'test', '*****@*****.**', 'abc' ) user.is_superuser=True user.is_staff=True user.save() del_test_data() ep_count=make_test_data() # send to bash script print ep_count