You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After changing functions in ./CAS_WEB/cas/models.py, redo make migration
python3 manage.py makemigrations ${app_name}
Then you can see the newest version of migration under ./CAS_WEB/cas/migrations, then you can migrate the database
python3 manage.py migrate ${app_name}
How to run test ?
How to run Django unit test ?
Log in PostgreS database with admin control with following command:
psql -h localhost -p 5432 -U postgres cats_test
Copy the controls from csv file for test
\COPY controls (cid,gid,title,parameters,properties,links,parts,classinfo,pid,high,moderate,low,id) FROM 'CAtS/CAS_WEB/tests/resource/Controls.csv' WITH (FORMAT csv);