を選択すると、画面右下に次の表示。 青いボタンをクリックしてテスト環境の設定を進める。 テストコードをtestフォルダにまとめたいので test を選択。 (testフォルダがなければ作成しておく。 testから始まるファイルをテストコードの対象に。 出来上がった .vscode/settings.json ではコードを書いていきます。 test/testCalc.py calc.py ステータスバーの [Run Tests] をクリックして [Run All Unit Tests] を実行。 OUTPUT の Python Test Log に OK が表示されればOK。 ただし、テストの2回目以降に、 OK Unhandled exception in thread started by のような例外が発生する模様。 しばらく様子をみます。
DEPRECATION: The default format will switch to columns in the future. You can use —format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
WARNINGS: ?: (mysql.W002) MySQL Strict Mode is not set for database connection ‘default’ HINT: MySQL’s Strict Mode fixes many data integrity problems in MySQL, such as data truncation upon insertion, by escalating warnings into errors. It is strongly recommended you activate it. See: https://docs.djangoproject.com/en/1.10/ref/databases/#mysql-sql-mode