Compare commits
No commits in common. "c8-beta" and "db207444c9844fcb22b827c887faee56fcb01bc7" have entirely different histories.
c8-beta
...
db207444c9
|
@ -0,0 +1 @@
|
|||
1
|
|
@ -1 +1 @@
|
|||
SOURCES/PyMySQL-1.0.2.tar.gz
|
||||
/PyMySQL-1.0.2.tar.gz
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
d58a2901d390e651df3e17f1225c33b868f75650 SOURCES/PyMySQL-1.0.2.tar.gz
|
|
@ -0,0 +1,7 @@
|
|||
--- !Policy
|
||||
|
||||
product_versions:
|
||||
- rhel-9
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
|
@ -0,0 +1,8 @@
|
|||
execute:
|
||||
how: tmt
|
||||
discover:
|
||||
- how: shell
|
||||
tests:
|
||||
- name: simple import
|
||||
test: python3.11 -c 'import pymysql'
|
||||
- how: fmf
|
|
@ -0,0 +1 @@
|
|||
SHA512 (PyMySQL-1.0.2.tar.gz) = c831505dafe6aebf039129ec4b09ef6dcafd490bcee2b515f42c0d0412fe9c379ba28650fb329d21f1da7e9fcae64968e1bc6065a04a08e00497a24967e27146
|
|
@ -0,0 +1,8 @@
|
|||
require:
|
||||
- mariadb-server
|
||||
- python3.11-PyMySQL
|
||||
|
||||
test: |
|
||||
systemctl start mariadb &&
|
||||
python3.11 smoke_test.py &&
|
||||
systemctl stop mariadb
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/python3
|
||||
# Modified from
|
||||
# https://github.com/PyMySQL/PyMySQL/blob/v1.0.2/example.py
|
||||
|
||||
import pymysql
|
||||
connection = pymysql.connect(unix_socket="/var/lib/mysql/mysql.sock", db="mysql")
|
||||
cursor = connection.cursor()
|
||||
cursor.execute("SELECT Host,User FROM user")
|
||||
print(cursor.description)
|
||||
|
||||
cursor.close()
|
||||
connection.close()
|
Loading…
Reference in New Issue