Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add core model_tests.py and view_tests.py #67

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

woanchang
Copy link

@woanchang woanchang commented Oct 10, 2016

  1. For the unit test for models and views of core application, the following directory and files are added.

         a. core/tests directory
         b. core/tests/__init_.py
         c. core/tests/model_tests.py
         d. core/tests/view_tests.py
    
  2. The following initial data files are modified.
    a. core/fixtures/initial_data.json
    b. maps/fixtures/initial_data.json

  3. Steps to run unit tests:
    1) Set the user and password for DATABASES in settings.py for the user with 'create' permission.
    2) comment out 'south' in INSTALLED_APPS of settings.py
    3) Run Postgres server
    4) Run GeoQ server
    5) Run the following command on a terminal window:
    python manage.py test core -v2

@woanchang woanchang closed this Oct 10, 2016
@woanchang woanchang reopened this Oct 10, 2016
@woanchang woanchang changed the title Add core model_tests.py and view_tests.py are added. Add core model_tests.py and view_tests.py Oct 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant