We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6198b9e commit db1a6e4Copy full SHA for db1a6e4
tests/test_db_api.py
@@ -1,5 +1,6 @@
1
import numpy as np
2
import pandas as pd
3
+from pytest import raises
4
5
6
def test_register_pandas_types(api_info):
@@ -42,3 +43,9 @@ def test_register_data_dict(api_info):
42
43
}
44
45
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