浏览代码

add documentation how to setup mysql for testing

Oz N Tiram 9 年之前
父节点
当前提交
fa32e1f734
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      tests/test_mysql.py

+ 11 - 0
tests/test_mysql.py

@@ -16,6 +16,17 @@
 # ============================================================================
 # Copyright (C) 2015 Oz Nahum Tiram <nahumoz@gmail.com>
 # ============================================================================
+
+"""
+setting up mysql for testing
+
+$ mysql -u root -h localhost -p
+
+mysql > CREATE DATABASE pwmantest;
+mysql > CREATE USER pwman IDENTIFIED BY '123456';
+mysql > GRANT ALL on pwmantest.* to 'pwman'@'localhost';
+"""
+
 import unittest
 import sys
 from .test_crypto_engine import give_key, DummyCallback