Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 16 lines (11 sloc) 0.453 kB
b973952 @tkaemming Make `python setup.py test` and `runtests.py` work.
tkaemming authored
1 #!/usr/bin/env python
2 from django.conf import settings
8373aa9 @dcramer collector import is required
authored
3 # collector import is required otherwise setuptools errors
4 from nose.core import run, collector
b973952 @tkaemming Make `python setup.py test` and `runtests.py` work.
tkaemming authored
5
6
7 # Trick Django into thinking that we've configured a project, so importing
8 # anything that tries to access attributes of `django.conf.settings` will just
9 # return the default values, instead of crashing out.
10 if not settings.configured:
11 settings.configure()
12
13
14 if __name__ == '__main__':
15 run()
Something went wrong with that request. Please try again.