mysqld-integration-test is a python module that creates a temporary mysqld instance to use for testing your application.
Project description
mysqld-integration-test
Overview
mysqld-integration-test is a python module that creates a temporary mysqld instance to use for testing your application. It is based on the testing.mysqld
module which has not been updated recently.
Download and Install
To install use pip:
$ pip install mysqld-integration-test
Or clone the repo:
$ git clone https://github.com/jasondcamp/mysqld-integration-test.git
Configuration
mysqld-integration-test environment variables and command line options
Usage
import
from mysqld_integration_test import Mysqld
run
Starts up the mysql server
mysqld = Mysqld()
instance = mysqld.run()
stop
Stops the mysql server
mysqld.stop()
Example
#!/usr/bin/env python3
from mysqld_integration_test import Mysqld
import mysql.connector
mysqld = Mysqld()
instance = mysqld.run()
mysqld.stop()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for mysqld-integration-test-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 707b2069d19b334e2bfc57115c3c928265c13c9ca31cf8d2a5bd37fd89994875 |
|
MD5 | 8f0303107a357a4cecbbe2463e089a86 |
|
BLAKE2b-256 | 68d6fba04472d331ab193cc5d29ff76a19523cafa431e7c37ba80563f731e13f |
Close
Hashes for mysqld_integration_test-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ba85b3f96bd20d261ec7043cb51de90bfc190b8c77d15258259b6bd973394b1 |
|
MD5 | dc500cf6304f5b36c3539085c06e4cb4 |
|
BLAKE2b-256 | 0621b2a96251124d266f0b0b95ea93e7ae94ac499b11c46f0ade660baece880e |