TESTING
author Radek Brich <brich.radek@ifortuna.cz>
Tue, 06 May 2014 18:37:43 +0200
changeset 101 2a2d0d5df03b
parent 75 39f777341db4
child 104 d8ff52a0390f
permissions -rw-r--r--
Refactor ToolBase to allow tool composition. Add TableSync tool (composited). Move more tools under pgtool.

TESTING
=======

All test should work at least with Python 2.7 and 3.2


How to test
-----------

1. copy pgtoolkit.conf.example to pgtoolkit.conf, modify it so it points to your test database

2. create test tables using sql/tests.sql

3. run tests.py


PostgreSQL
----------

CREATE ROLE test LOGIN PASSWORD 'test';

CREATE DATABASE test;
\c test
\i sql/tests.sql


MySQL
-----

CREATE USER 'test'@'%' IDENTIFIED BY 'test';
GRANT all ON test.* TO 'test'@'%';

CREATE DATABASE test;
USE test;

CREATE TABLE test
(
  id INT NOT NULL AUTO_INCREMENT,
  name TEXT,
  PRIMARY KEY (id)
)
ENGINE=InnoDB CHARSET=utf8;