Skip to content

Commit 463dfcf

Browse files
committed
Updated to Celery 3.1.6.
1 parent 4e2083f commit 463dfcf

22 files changed

Lines changed: 67 additions & 47 deletions

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ all:
33

44
db:
55
python manage.py syncdb --noinput
6-
python manage.py migrate
6+
python manage.py migrate --noinput
77

88
test:
9-
python manage.py test api cm provider web
9+
python -Wall manage.py test --noinput api cm provider web
1010

1111
coverage:
12-
coverage run manage.py test api cm provider web
12+
coverage run manage.py test --noinput api cm provider web
1313
coverage html
1414

1515
test_client:
16-
python -m unittest discover client.tests
16+
python -Wall -m unittest discover client.tests
1717

1818
flake8:
1919
flake8

api/migrations/0001_initial.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
import datetime
2+
from south.utils import datetime_utils as datetime
33
from south.db import db
44
from south.v2 import SchemaMigration
55
from django.db import models
@@ -415,15 +415,15 @@ def backwards(self, orm):
415415
'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
416416
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
417417
'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
418-
'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
418+
'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
419419
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
420420
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
421421
'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
422422
'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
423423
'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
424424
'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
425425
'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
426-
'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
426+
'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
427427
'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
428428
},
429429
u'contenttypes.contenttype': {

api/tests/__init__.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ def send_patch(self, path, data='', content_type='application/octet-stream',
2727
RequestFactory.patch = construct_patch
2828
Client.patch = send_patch
2929

30-
from .app import * # noqa
31-
from .auth import * # noqa
32-
from .build import * # noqa
33-
from .config import * # noqa
34-
from .container import * # noqa
35-
from .flavor import * # noqa
36-
from .formation import * # noqa
37-
from .key import * # noqa
38-
from .layer import * # noqa
39-
from .node import * # noqa
40-
from .provider import * # noqa
41-
from .release import * # noqa
30+
from .test_app import * # noqa
31+
from .test_auth import * # noqa
32+
from .test_build import * # noqa
33+
from .test_config import * # noqa
34+
from .test_container import * # noqa
35+
from .test_flavor import * # noqa
36+
from .test_formation import * # noqa
37+
from .test_key import * # noqa
38+
from .test_layer import * # noqa
39+
from .test_node import * # noqa
40+
from .test_provider import * # noqa
41+
from .test_release import * # noqa
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@
1010
import os.path
1111

1212
from django.test import TestCase
13+
from django.test.utils import override_settings
1314

1415
from deis import settings
1516

1617

18+
@override_settings(CELERY_ALWAYS_EAGER=True)
1719
class AppTest(TestCase):
1820

1921
"""Tests creation of applications"""
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
import uuid
1111

1212
from django.test import TestCase
13+
from django.test.utils import override_settings
1314

1415
from api.models import Build
1516

16-
# pylint: disable=R0904
17-
1817

18+
@override_settings(CELERY_ALWAYS_EAGER=True)
1919
class BuildTest(TestCase):
2020

2121
"""Tests build notification from build system"""
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
import json
1010

1111
from django.test import TestCase
12+
from django.test.utils import override_settings
1213

1314

15+
@override_settings(CELERY_ALWAYS_EAGER=True)
1416
class ConfigTest(TestCase):
1517

1618
"""Tests setting and updating config values"""
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import json
1010

1111
from django.test import TestCase
12+
from django.test.utils import override_settings
1213

1314
from deis import settings
1415

@@ -24,6 +25,7 @@ def get_allocations(container_dict):
2425
return sorted(counts.values())
2526

2627

28+
@override_settings(CELERY_ALWAYS_EAGER=True)
2729
class ContainerTest(TestCase):
2830

2931
"""Tests creation of containers on nodes"""
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
1111
import uuid
1212

1313
from django.test import TestCase
14+
from django.test.utils import override_settings
1415

1516
from deis import settings
1617

1718

19+
@override_settings(CELERY_ALWAYS_EAGER=True)
1820
class FormationTest(TestCase):
1921

2022
"""Tests creation of different node formations"""

0 commit comments

Comments
 (0)