Skip to content

Commit

Permalink
fixed imports
Browse files Browse the repository at this point in the history
  • Loading branch information
janickr committed Jul 29, 2024
1 parent c3a7ab4 commit b95be88
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 26 deletions.
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ build-backend = "setuptools.build_meta"

[tool.pytest.ini_options]
log_cli = true
log_cli_level = "INFO"
log_cli_level = "INFO"
markers = [
"mysql8",
"mysql5_7: tests specific for mysql 5.7",
]
12 changes: 1 addition & 11 deletions tests/test_all_field_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,9 @@
# You should have received a copy of the GNU Lesser General Public License along with Myprotosql.
# If not, see <https://www.gnu.org/licenses/>.

import json
import simple_message_pb2
import string_message_pb2
import repeated_fields_pb2
import submessage_pb2
import group_pb2
import oneof_pb2
import packed_pb2
import repeatedv3_pb2
import everything_pb2
from mysql.connector import MySQLConnection

from tests.conftest import MyProtoSql
from conftest import MyProtoSql


class TestAllFieldTypes:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_binary_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import binary_message_pb2

from tests.conftest import MyProtoSql
from conftest import MyProtoSql


class TestBytesMessage:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import group_pb2

from tests.conftest import MyProtoSql
from conftest import MyProtoSql


class TestGroup:
Expand Down
2 changes: 0 additions & 2 deletions tests/test_interpret_i32.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
# You should have received a copy of the GNU Lesser General Public License along with Myprotosql.
# If not, see <https://www.gnu.org/licenses/>.

from dataclasses import dataclass

import pytest
from mysql.connector import MySQLConnection

Expand Down
2 changes: 0 additions & 2 deletions tests/test_interpret_i64.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
# You should have received a copy of the GNU Lesser General Public License along with Myprotosql.
# If not, see <https://www.gnu.org/licenses/>.

from dataclasses import dataclass

import pytest
from mysql.connector import MySQLConnection

Expand Down
2 changes: 1 addition & 1 deletion tests/test_oneof.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import oneof_pb2

from tests.conftest import MyProtoSql
from conftest import MyProtoSql


class TestOneOf:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_packages_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import imports_parentmessage_pb2
import packages_imports_parentmessage_pb2

from tests.conftest import MyProtoSql
from conftest import MyProtoSql


class TestPackagesAndImports:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_packed_repeated_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import packed_pb2
import repeatedv3_pb2

from tests.conftest import MyProtoSql
from conftest import MyProtoSql


class TestPackedRepeatedFields:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_repeated_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import repeated_fields_pb2

from tests.conftest import MyProtoSql
from conftest import MyProtoSql


class TestRepeatedFields:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_simple_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import simple_message_pb2

from tests.conftest import MyProtoSql
from conftest import MyProtoSql


class TestSimpleMessage:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_string_escaping.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import string_message_pb2

from tests.conftest import MyProtoSql
from conftest import MyProtoSql


class TestStringMessage:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_string_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import string_message_pb2

from tests.conftest import MyProtoSql
from conftest import MyProtoSql


class TestStringMessage:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_submessage.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import submessage_pb2

from tests.conftest import MyProtoSql
from conftest import MyProtoSql


class TestSubmessage:
Expand Down

0 comments on commit b95be88

Please sign in to comment.