Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Refactor utilities #47

Merged
merged 2 commits into from Jul 1, 2012

Conversation

Projects
None yet
2 participants
Contributor

dcramer commented Apr 25, 2012

This moves several helper functions out of upgradedb and into utils
for future use (and API support outside of the manage.py command).

It also introduces the beginnings of a test suite.

Contributor

dcramer commented Apr 25, 2012

GH-46 will also need updated to support databases vs database in the call_command args

dcramer added some commits Apr 25, 2012

Refactor utilities
This moves several helper functions out of upgradedb and into utils
for future use (and API support outside of the manage.py command).

It also introduces the beginnings of a test suite.

@paltman paltman commented on the diff May 9, 2012

runtests.py
+ },
+ INSTALLED_APPS=[
+ 'nashvegas',
+ 'tests',
+ ],
+ ROOT_URLCONF='',
+ DEBUG=False,
+ SITE_ID=1,
+ TEMPLATE_DEBUG=True,
+ )
+
+from django_nose import NoseTestSuiteRunner
+
+
+def runtests(*test_args, **kwargs):
+ if 'south' in settings.INSTALLED_APPS:
@paltman

paltman May 9, 2012

Collaborator

Do people run with both south and nashvegas installed in the same project?

@dcramer

dcramer May 9, 2012

Contributor

Haha copy paste ;)

I can kill that line

Collaborator

paltman commented May 9, 2012

This looks fantastic. I just need to find some time to give it a spin locally before I merge. Thanks!

@paltman paltman merged commit 179db2a into paltman-archive:master Jul 1, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment