Skip to content

Commit db1a6e4

Browse files
committedJan 2, 2025·
test unhappy route
1 parent 6198b9e commit db1a6e4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎tests/test_db_api.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import numpy as np
22
import pandas as pd
3+
from pytest import raises
34

45

56
def test_register_pandas_types(api_info):
@@ -42,3 +43,9 @@ def test_register_data_dict(api_info):
4243
}
4344

4445
db_api.register_table(records_dict, "my_dict_input_table")
46+
47+
48+
def test_nice_error_bad_register_type(api_info):
49+
db_api = api_info["db_api_factory"]()
50+
with raises(TypeError):
51+
db_api.register_table(3, "the_number_three")

0 commit comments

Comments
 (0)
Please sign in to comment.