We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d8ff8f commit 0472559Copy full SHA for 0472559
pandas/tests/io/parser/conftest.py
@@ -107,6 +107,32 @@ def python_parser_only(request):
107
]
108
109
110
+@pytest.fixture(params=_utf_values)
111
+def utf_value(request):
112
+ """
113
+ Fixture for all possible integer values for a UTF encoding.
114
115
+ return request.param
116
+
117
118
+@pytest.fixture(params=_encoding_fmts)
119
+def encoding_fmt(request):
120
121
+ Fixture for all possible string formats of a UTF encoding.
122
123
124
125
126
+_utf_values = [8, 16, 32]
127
128
+_encoding_seps = ["", "-", "_"]
129
+_encoding_prefixes = ["utf", "UTF"]
130
131
+_encoding_fmts = [
132
+ f"{prefix}{sep}" + "{0}" for sep in _encoding_seps for prefix in _encoding_prefixes
133
+]
134
135
136
@pytest.fixture(params=_utf_values)
137
def utf_value(request):
138
"""
0 commit comments