Permalink
Browse files

Rename to assemblyline, so as not to clobber files named factories.py.

  • Loading branch information...
1 parent 759a25f commit 170db91f43ac915d4c671e2fc342a60df5cc3b35 @mscheibe committed Nov 17, 2011
View
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
setup(
- name = "django-factories",
+ name = "django-assemblyline",
version = "0.1",
url = "",
license = "MIT",
@@ -13,5 +13,5 @@
'setuptools',
'django',
],
- test_suite = "factories.runtests.runtests",
+ test_suite = "assemblyline.runtests.runtests",
)
File renamed without changes.
@@ -1,7 +1,7 @@
"""
Factory for flatpages app.
"""
-from factories import Factory, blueprint
+from assemblyline import Factory, blueprint
class FlatPageFactory(Factory):
File renamed without changes.
@@ -5,14 +5,14 @@
def runtests():
# set the environment up so Django can find some settings
- os.environ['DJANGO_SETTINGS_MODULE'] = 'factories.testsettings'
+ os.environ['DJANGO_SETTINGS_MODULE'] = 'assemblyline.testsettings'
# ...and now that it can find settings, import them
from django.conf import settings
from django.test.utils import get_runner
test_runner = get_runner(settings)(verbosity=1, interactive=True)
- failures = test_runner.run_tests(['factories',])
+ failures = test_runner.run_tests(['assemblyline',])
# exit with the failure information to satisfy unittest/setuptools
sys.exit(failures)
@@ -0,0 +1,2 @@
+from assemblyline.tests.test_factories import *
+from assemblyline.tests.test_flat_page_factory import *
@@ -1,7 +1,7 @@
from unittest import TestCase
-from factories import Factory, blueprint
-from factories.models import TestUser, TestModel
+from assemblyline import Factory, blueprint
+from assemblyline.models import TestUser, TestModel
class UserFactory(Factory):
@@ -3,7 +3,7 @@
"""
from django.test import TestCase
from django.contrib.flatpages.models import FlatPage
-from factories.flat_pages import FlatPageFactory
+from assemblyline.flat_pages import FlatPageFactory
class FlatPageFactoryTests(TestCase):
@@ -29,7 +29,7 @@ def test_build_flat_page(self):
def test_create_flat_page(self):
"""
The ``create_flat_page`` method should build and save a FlatPage
- object.
+ object.factory
"""
flat_page = self.factory.create_flat_page()
self.assertTrue(isinstance(flat_page, FlatPage))
@@ -7,4 +7,4 @@
}
SITE_ID = 'testing'
-INSTALLED_APPS = ['factories', 'django.contrib.flatpages']
+INSTALLED_APPS = ['assemblyline', 'django.contrib.flatpages']
@@ -1,2 +0,0 @@
-from factories.tests.test_factories import *
-from factories.tests.test_flat_page_factory import *

0 comments on commit 170db91

Please sign in to comment.