Skip to content

Add doctest #1086

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ jobs:
- name: Run test
run: |
pytest -v --cov --cov-config .coveragerc pymysql
pytest -v --cov --cov-config .coveragerc --doctest-modules pymysql/converters.py

- name: Run MySQL8 auth test
if: ${{ matrix.mysql_auth }}
Expand Down
1 change: 0 additions & 1 deletion pymysql/tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ def test_json(self):


class TestBulkInserts(base.PyMySQLTestCase):

cursor_type = pymysql.cursors.DictCursor

def setUp(self):
Expand Down
1 change: 0 additions & 1 deletion pymysql/tests/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def __exit__(self, exc_type, exc_value, traceback):


class TestAuthentication(base.PyMySQLTestCase):

socket_auth = False
socket_found = False
two_questions_found = False
Expand Down
1 change: 0 additions & 1 deletion pymysql/tests/thirdparty/test_MySQLdb/capabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@


class DatabaseTest(unittest.TestCase):

db_module = None
connect_args = ()
connect_kwargs = dict(use_unicode=True, charset="utf8mb4", binary_prefix=True)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class test_MySQLdb(capabilities.DatabaseTest):

db_module = pymysql
connect_args = ()
connect_kwargs = base.PyMySQLTestCase.databases[0].copy()
Expand Down