Skip to content

Latest commit

 

History

History
13 lines (13 loc) · 809 Bytes

django.testing.md

File metadata and controls

13 lines (13 loc) · 809 Bytes

Testing in Django

  1. Go to your Django activebrainatlas or brainsharer_portal installation directory
  2. Do: source /usr/local/share/pipeline/bin/activate
  3. Do: git pull origin master
  4. Do: python manage.py check
  5. Do: python manage.py test neuroglancer --keepdb This will run all tests in neuroglancer/tests.py. All methods that start with test_ are run. If there is a setup method, that is run before each test. Each test runs on its own and has nothing to do with any other test_ method. (Except the setup method)
  6. For this to work, you will need access to the test_active_atlas_development database. The dk user has the necessary permissions.
  7. Create new test methods in the same file. For any test, simply name it test_my_existing_method . Each method must start with test_