@@ -52,8 +52,10 @@ def custom_namedtuple_function(
52
52
iterable_input : Iterable ,
53
53
auto_attribute_names : bool
54
54
) -> Tuple :
55
- """ Test function that accepts an iterable object as input,
56
- and returns the iterable as a tuple object.
55
+ """ Test function that accepts an iterable object as input.
56
+
57
+ Testing function to collect an iterable object and return the
58
+ iterable as a tuple object.
57
59
58
60
Args:
59
61
iterable_input (Iterable):
@@ -110,11 +112,12 @@ def test_named_tuple_converter(
110
112
iter_return ,
111
113
att_return
112
114
) -> None :
113
- """ Test of the named_tuple_converter decorator function to
114
- determine if the function accepts an iterable argument and
115
- returns a namedtuple with the original iterable data values.
116
- Collect the namedtuple field names from an iterable of names
117
- passed an argument.
115
+ """ Test of the named_tuple_converter decorator function.
116
+
117
+ Determine if the decorator function accepts an iterable
118
+ argument and returns a namedtuple with the original iterable
119
+ data values. Collect the namedtuple field names from an
120
+ iterable of names passed an argument.
118
121
119
122
Args:
120
123
iter_input (Iterable):
@@ -158,11 +161,12 @@ def test_named_tuple_converter(
158
161
side_effect = TEST_DATA .keys ()
159
162
)
160
163
def test_named_tuple_converter_input (side_effects ) -> None :
161
- """ Test of the named_tuple_converter decorator function to
162
- determine if the function accepts an iterable argument and
163
- returns a namedtuple with the original iterable data values.
164
- Collect the namedtuple attribute names with the input()
165
- function.
164
+ """ Test of the named_tuple_converter decorator function.
165
+
166
+ Determine if the decorator function accepts an iterable
167
+ argument and returns a namedtuple with the original iterable
168
+ data values. Collect the namedtuple attribute names with the
169
+ input() function.
166
170
167
171
Args:
168
172
side_effects (unittest.mock.patch):
@@ -211,13 +215,13 @@ def test_named_tuple_converter_custom_function_auto_name_attributes(
211
215
iter_return ,
212
216
att_return
213
217
) -> None :
214
- """ Test of the named_tuple_converter decorator function using a
215
- custom function to determine if the function accepts an
216
- iterable argument and returns a namedtuple with the original
217
- iterable data, and if the decorator function automatically
218
- names the namedtuple attributes with the auto_attribute_names
219
- parameter set to True. Collect the namedtuple field names from
220
- an iterable of names passed an argument.
218
+ """ Test of the named_tuple_converter decorator function.
219
+
220
+ Determine if the decorator function accepts an iterable
221
+ argument and returns a namedtuple with the original iterable
222
+ data values. Collect the namedtuple field names from an
223
+ iterable of names passed an argument. Collect the namedtuple
224
+ field names from an iterable of names passed an argument.
221
225
222
226
Args:
223
227
iter_input (Iterable):
@@ -251,9 +255,10 @@ def test_named_tuple_converter_custom_function_auto_name_attributes(
251
255
252
256
253
257
def test_named_tuple_converter_invalid_iterable_exception () -> None :
254
- """ Test of the named_tuple_converter decorator function for
255
- exception handling, when the iterable_input argument contains
256
- a non-iterable object/value.
258
+ """ Test of the named_tuple_converter decorator function.
259
+
260
+ Tests exception handling, when the iterable_input argument
261
+ contains a non-iterable object/value.
257
262
258
263
Args:
259
264
None.
0 commit comments