Skip to content

Commit 0b44032

Browse files
committed
chore: add type hints to tests
1 parent 52a548e commit 0b44032

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_connection_.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@
33
import pytest
44

55

6-
def test_require_boolean_query_tag_fails():
6+
def test_require_boolean_query_tag_fails() -> None:
77
conn = TSC.ConnectionItem()
88
conn._connection_type = "postgres"
99
with pytest.raises(ValueError):
10-
conn.query_tagging = "no"
10+
conn.query_tagging = "no" # type: ignore[assignment]
1111

1212

13-
def test_set_query_tag_normal_conn():
13+
def test_set_query_tag_normal_conn() -> None:
1414
conn = TSC.ConnectionItem()
1515
conn._connection_type = "postgres"
1616
conn.query_tagging = True
1717
assert conn.query_tagging
1818

1919

2020
@pytest.mark.parametrize("conn_type", ["hyper", "teradata", "snowflake"])
21-
def test_ignore_query_tag(conn_type):
21+
def test_ignore_query_tag(conn_type: str) -> None:
2222
conn = TSC.ConnectionItem()
2323
conn._connection_type = conn_type
2424
conn.query_tagging = True

0 commit comments

Comments
 (0)