So I followed the instructions on the site here:
https://docs.djangoproject.com/en/1.5/topics/testing/overview/
but what confuses me is the portion that describes the scope of tests when running. It says:
By default, this will run every test in every application in INSTALLED_APPS. If you only want to run tests for a particular application, add the application name to the command line.
For example, if your INSTALLED_APPS contains 'myproject.polls' and 'myproject.animals', you can run the myproject.animals unit tests alone with this command:
What confuses me is that the directory structure for the site is laid out like so
myproject/
manage.py
mysite/
__init__.py
settings.py
urls.py
views.py
models.py
wsgi.py
So I don't really have any smaller apps. I essentially just have 1 big app which is the site. There are a number of apps that are in my INSTALLED_APPS variable but I just want to run the test on mysite. How would I go about doing that?
Or, would I have to:
Move the entire site to its own app, laying out a directory structure like this and add that app to INSTALLED_APPS
myproject/
manage.py
mysite/
__init__.py
settings.py
urls.py
wsgi.py
mysiteapp/
views.py
models.py
Also, in general would that be a better structure for my django project?