Skip to content

Commit df49500

Browse files
fix fail
1 parent cebe587 commit df49500

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

tests/test_helpers.py

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
nativestr,
66
parse_to_list,
77
quote_string,
8-
random_string,
9-
parse_to_dict
8+
random_string
109
)
1110

1211

@@ -20,34 +19,11 @@ def test_list_or_args():
2019

2120

2221
def test_parse_to_list():
23-
assert parse_to_list(None) == []
2422
r = ["hello", b"my name", "45", "555.55", "is simon!", None]
2523
assert parse_to_list(r) == \
2624
["hello", "my name", 45, 555.55, "is simon!", None]
2725

2826

29-
def test_parse_to_dict():
30-
assert parse_to_dict(None) == {}
31-
r = [['Some number', '1.0345'],
32-
['Some string', 'hello'],
33-
['Child iterators',
34-
['Time', '0.2089', 'Counter', 3, 'Child iterators',
35-
['Type', 'bar', 'Time', '0.0729', 'Counter', 3],
36-
['Type', 'barbar', 'Time', '0.058', 'Counter', 3]]]]
37-
assert parse_to_dict(r) == {
38-
'Child iterators': {
39-
'Child iterators': [
40-
{'Counter': 3.0, 'Time': 0.0729, 'Type': 'bar'},
41-
{'Counter': 3.0, 'Time': 0.058, 'Type': 'barbar'}
42-
],
43-
'Counter': 3.0,
44-
'Time': 0.2089
45-
},
46-
'Some number': 1.0345,
47-
'Some string': 'hello'
48-
}
49-
50-
5127
def test_nativestr():
5228
assert nativestr('teststr') == 'teststr'
5329
assert nativestr(b'teststr') == 'teststr'

0 commit comments

Comments
 (0)