ODM2 / CZ-Manager

CZ Manager (formerly ODM2 Admin) is an application for site level data management of environmental observations using Observation Data Model 2 (ODM2) for documentation and a detailed walkthrough see:
http://odm2.github.io/CZ-Manager
MIT License
9 stars 12 forks source link

Fix tests #191

Closed ocefpaf closed 6 years ago

ocefpaf commented 6 years ago

Replaces #190

miguelcleon commented 6 years ago

@ocefpaf Django tests need to be run through manage.py, so that is probably why the tests haven't been running.

python manage.py test

https://docs.djangoproject.com/en/2.0/topics/testing/overview/#running-tests

manage.py is in the root of this project directory.

lsetiawan commented 6 years ago

@miguelcleon I've created some tests for the API, see:

lsetiawan commented 6 years ago

Just sample of how tests should be implemented in Django. Hope that helps.