Skip to content

Commit d734f15

Browse files
authored
Action: Add doctest (#1086)
1 parent 67af9a5 commit d734f15

File tree

5 files changed

+1
-4
lines changed

5 files changed

+1
-4
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ jobs:
8484
- name: Run test
8585
run: |
8686
pytest -v --cov --cov-config .coveragerc pymysql
87+
pytest -v --cov --cov-config .coveragerc --doctest-modules pymysql/converters.py
8788
8889
- name: Run MySQL8 auth test
8990
if: ${{ matrix.mysql_auth }}

pymysql/tests/test_basic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ def test_json(self):
312312

313313

314314
class TestBulkInserts(base.PyMySQLTestCase):
315-
316315
cursor_type = pymysql.cursors.DictCursor
317316

318317
def setUp(self):

pymysql/tests/test_connection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def __exit__(self, exc_type, exc_value, traceback):
4545

4646

4747
class TestAuthentication(base.PyMySQLTestCase):
48-
4948
socket_auth = False
5049
socket_found = False
5150
two_questions_found = False

pymysql/tests/thirdparty/test_MySQLdb/capabilities.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111

1212
class DatabaseTest(unittest.TestCase):
13-
1413
db_module = None
1514
connect_args = ()
1615
connect_kwargs = dict(use_unicode=True, charset="utf8mb4", binary_prefix=True)

pymysql/tests/thirdparty/test_MySQLdb/test_MySQLdb_capabilities.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99

1010
class test_MySQLdb(capabilities.DatabaseTest):
11-
1211
db_module = pymysql
1312
connect_args = ()
1413
connect_kwargs = base.PyMySQLTestCase.databases[0].copy()

0 commit comments

Comments
 (0)