Permalink
Browse files

make the test command optional.

  • Loading branch information...
1 parent 0503311 commit a6fc1bea936382cd10cab873a9cdb9ec565f6312 Dusty Phillips committed Sep 6, 2010
@@ -0,0 +1,44 @@
+# encoding: utf-8
+import datetime
+from south.db import db
+from south.v2 import SchemaMigration
+from django.db import models
+
+class Migration(SchemaMigration):
+
+ def forwards(self, orm):
+
+ # Changing field 'PipProject.test_command'
+ db.alter_column('project_pipproject', 'test_command', self.gf('django.db.models.fields.CharField')(max_length=128, blank=True))
+
+
+ def backwards(self, orm):
+
+ # Changing field 'PipProject.test_command'
+ db.alter_column('project_pipproject', 'test_command', self.gf('django.db.models.fields.CharField')(max_length=128))
+
+
+ models = {
+ 'project.pipproject': {
+ 'Meta': {'object_name': 'PipProject'},
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'project': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['project.Project']", 'unique': 'True'}),
+ 'test_command': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
+ 'virtualenv_path': ('django.db.models.fields.CharField', [], {'default': "'venv/'", 'max_length': '256'})
+ },
+ 'project.project': {
+ 'Meta': {'object_name': 'Project'},
+ 'base_directory': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '512'}),
+ 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
+ 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+ 'favourite': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
+ 'git_repo': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '512', 'blank': 'True'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'name': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
+ 'project_type': ('django.db.models.fields.CharField', [], {'max_length': '9'}),
+ 'test_status': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
+ 'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'})
+ }
+ }
+
+ complete_apps = ['project']
@@ -112,5 +112,6 @@ class PipProject(models.Model):
help_text="The directory the virtualenv is stored in.",
default="venv/")
test_command = models.CharField(max_length=128,
+ blank=True,
help_text="Command to run tests. Eg: py.test, nose, ./run_tests.py")

0 comments on commit a6fc1be

Please sign in to comment.