mirror of
https://github.com/mariadb-corporation/mariadb-connector-python.git
synced 2025-07-22 18:26:37 +00:00

Fixed various coding style stuff detected by flake8. Added .pre-commit-config.yaml: With command pre_commit install a hook for flake8 will be installed.
26 lines
511 B
Python
26 lines
511 B
Python
#!/usr/bin/env python3 -O
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# requirement: pip install pyperf
|
|
|
|
import importlib
|
|
|
|
from benchmarks.internal_bench import test_suite
|
|
from benchmarks.internal_bench import run_test
|
|
|
|
from test.conf_test import conf, glob
|
|
|
|
module = glob()
|
|
dbdrv = importlib.import_module(module["module"])
|
|
|
|
|
|
def main():
|
|
default_conf = conf()
|
|
conn = dbdrv.connect(**default_conf)
|
|
run_test(test_suite(dbdrv.paramstyle), conn, dbdrv.paramstyle)
|
|
conn.close()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|