Notes to Test driven development with Django using pycharm (chp 5 database!)

0 Checkpoints ORM model in Django 1 The first unit test First, let’s write the unit test for database. What are we going to test then? Well, as we discussed in the last section, the unit test is about testing the logic, flow control. So what we are going to do here is to test: We input a value as the first row in the webpage. Does the database receives the same value as the input?

Notes to Test driven development with Django using pycharm (chp 4-5)

0 Checkpoints Don’t use unit test to test a constant. Unit test is about testing logic, flow control and configuration. Run unit tests from pycharm IDE : Tools\=\=>Run manage.py task … Another development cycle, follow the pattern, i.e. if you choose MCV, then if you changed M then you should change C, and V correspondingly. Organize the code in unit test: create test, call function under the test and assertions

Notes to Test driven development with Django using pycharm (chp 2-3)

0 Checkpoints Blackbox Test=Functional Test=Acceptance Test= End-to-End Test ; These names are referring to the same thing. The purpose of this kind of test is to look at how the whole application functioned from outside/custom’s point of view. The term black box test is forged is because we just want to test the outcome of the whole code without knowing the details inside App = function; Structure the code into several apps/ functions (def function()).

Notes to test driven development with Django using pycharm (chp 1)

0 Check points Setting up a virtual environment and adding packages to the project Editing the command line parameters to the “run” button, which is equivalent to “python xxx.py xxx” Checking the output log space on the bottom of the screen. Functional test to retrieve the web page from a server 1 setup the virtual environment After downloading and installing the pycharm, the first time you start you would see the following:

Using PBS commands in HPC

PBS, or Portable Batch System is one of the popular job scheduler used in HPC (High Performance Computer) cluster system. It provides useful commands to help with job management. Here I just list some of them for note.

Some useful PBS commands:

  • qsub
  • showq
  • qstat
  • qdel
  • qpeek
  • pbsnode
  • qalter