148 changes: 74 additions & 74 deletions tests/src/python/test_qgsdelimitedtextprovider_wanted.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def test_002_load_csv_file():
'description': u'Basic unquoted record',
'data': u'Some data',
'info': u'Some info',
'field_5': u'None',
'field_5': u'NULL',
'#fid': 2L,
'#geometry': 'None',
},
Expand All @@ -18,7 +18,7 @@ def test_002_load_csv_file():
'description': u'Quoted field',
'data': u'Quoted data',
'info': u'Unquoted',
'field_5': u'None',
'field_5': u'NULL',
'#fid': 3L,
'#geometry': 'None',
},
Expand All @@ -27,7 +27,7 @@ def test_002_load_csv_file():
'description': u'Escaped quotes',
'data': u'Quoted "citation" data',
'info': u'Unquoted',
'field_5': u'None',
'field_5': u'NULL',
'#fid': 4L,
'#geometry': 'None',
},
Expand All @@ -36,7 +36,7 @@ def test_002_load_csv_file():
'description': u'Quoted newlines',
'data': u'Line 1\nLine 2\n\nLine 4',
'info': u'No data',
'field_5': u'None',
'field_5': u'NULL',
'#fid': 5L,
'#geometry': 'None',
},
Expand All @@ -52,9 +52,9 @@ def test_002_load_csv_file():
10L: {
'id': u'6',
'description': u'Missing fields',
'data': u'None',
'info': u'None',
'field_5': u'None',
'data': u'NULL',
'info': u'NULL',
'field_5': u'NULL',
'#fid': 10L,
'#geometry': 'None',
},
Expand All @@ -74,13 +74,13 @@ def test_003_field_naming():
'description': u'Generation of field names',
'data': u'Some data',
'field_4': u'Some info',
'data_2': u'None',
'field_6': u'None',
'field_7': u'None',
'field_3_1': u'None',
'data_1': u'None',
'field_10': u'None',
'field_11': u'None',
'data_2': u'NULL',
'field_6': u'NULL',
'field_7': u'NULL',
'field_3_1': u'NULL',
'data_1': u'NULL',
'field_10': u'NULL',
'field_11': u'NULL',
'field_12': u'last data',
'#fid': 2L,
'#geometry': 'None',
Expand All @@ -101,9 +101,9 @@ def test_004_max_fields():
'description': u'Generation of field names',
'data': u'Some data',
'field_4': u'Some info',
'data_1': u'None',
'field_6': u'None',
'field_7': u'None',
'data_1': u'NULL',
'field_6': u'NULL',
'field_7': u'NULL',
'#fid': 2L,
'#geometry': 'None',
},
Expand All @@ -123,8 +123,8 @@ def test_005_load_whitespace():
'description': u'Simple_whitespace_file',
'data': u'data1',
'info': u'info1',
'field_5': u'None',
'field_6': u'None',
'field_5': u'NULL',
'field_6': u'NULL',
'#fid': 2L,
'#geometry': 'None',
},
Expand All @@ -133,8 +133,8 @@ def test_005_load_whitespace():
'description': u'Whitespace_at_start_of_line',
'data': u'data2',
'info': u'info2',
'field_5': u'None',
'field_6': u'None',
'field_5': u'NULL',
'field_6': u'NULL',
'#fid': 3L,
'#geometry': 'None',
},
Expand All @@ -143,8 +143,8 @@ def test_005_load_whitespace():
'description': u'Tab_whitespace',
'data': u'data3',
'info': u'info3',
'field_5': u'None',
'field_6': u'None',
'field_5': u'NULL',
'field_6': u'NULL',
'#fid': 4L,
'#geometry': 'None',
},
Expand All @@ -153,8 +153,8 @@ def test_005_load_whitespace():
'description': u'Multiple_whitespace_characters',
'data': u'data4',
'info': u'info4',
'field_5': u'None',
'field_6': u'None',
'field_5': u'NULL',
'field_6': u'NULL',
'#fid': 5L,
'#geometry': 'None',
},
Expand All @@ -171,10 +171,10 @@ def test_005_load_whitespace():
7L: {
'id': u'6',
'description': u'Missing_fields',
'data': u'None',
'info': u'None',
'field_5': u'None',
'field_6': u'None',
'data': u'NULL',
'info': u'NULL',
'field_5': u'NULL',
'field_6': u'NULL',
'#fid': 7L,
'#geometry': 'None',
},
Expand All @@ -194,8 +194,8 @@ def test_006_quote_escape():
'description': u'Using pipe delimiter',
'data': u'data 1',
'info': u'info 1',
'field_5': u'None',
'field_6': u'None',
'field_5': u'NULL',
'field_6': u'NULL',
'#fid': 2L,
'#geometry': 'None',
},
Expand All @@ -204,8 +204,8 @@ def test_006_quote_escape():
'description': u'Using backslash escape on pipe',
'data': u'data 2 | piped',
'info': u'info2',
'field_5': u'None',
'field_6': u'None',
'field_5': u'NULL',
'field_6': u'NULL',
'#fid': 3L,
'#geometry': 'None',
},
Expand All @@ -214,18 +214,18 @@ def test_006_quote_escape():
'description': u'Backslash escaped newline',
'data': u'data3 \nline2 \nline3',
'info': u'info3',
'field_5': u'None',
'field_6': u'None',
'field_5': u'NULL',
'field_6': u'NULL',
'#fid': 4L,
'#geometry': 'None',
},
7L: {
'id': u'4',
'description': u'Empty field',
'data': u'None',
'data': u'NULL',
'info': u'info4',
'field_5': u'None',
'field_6': u'None',
'field_5': u'NULL',
'field_6': u'NULL',
'#fid': 7L,
'#geometry': 'None',
},
Expand All @@ -234,8 +234,8 @@ def test_006_quote_escape():
'description': u'Quoted field',
'data': u'More | piped data',
'info': u'info5',
'field_5': u'None',
'field_6': u'None',
'field_5': u'NULL',
'field_6': u'NULL',
'#fid': 8L,
'#geometry': 'None',
},
Expand All @@ -244,18 +244,18 @@ def test_006_quote_escape():
'description': u'Escaped quote',
'data': u'Field "citation" ',
'info': u'info6',
'field_5': u'None',
'field_6': u'None',
'field_5': u'NULL',
'field_6': u'NULL',
'#fid': 9L,
'#geometry': 'None',
},
10L: {
'id': u'7',
'description': u'Missing fields',
'data': u'None',
'info': u'None',
'field_5': u'None',
'field_6': u'None',
'data': u'NULL',
'info': u'NULL',
'field_5': u'NULL',
'field_6': u'NULL',
'#fid': 10L,
'#geometry': 'None',
},
Expand Down Expand Up @@ -843,10 +843,10 @@ def test_018_regular_expression_2():
'GEXP': u'GEXP',
'description': u'RE',
'RE_1': u'RE',
'GEXP_1': u'None',
'GEXP_1': u'NULL',
'data': u'data2',
'RE_2': u'RE',
'GEXP_2': u'None',
'GEXP_2': u'NULL',
'info': u'info2',
'#fid': 3L,
'#geometry': 'None',
Expand Down Expand Up @@ -1080,7 +1080,7 @@ def test_026_filter_fid():
'description': u'Quoted field',
'data': u'Quoted data',
'info': u'Unquoted',
'field_5': u'None',
'field_5': u'NULL',
'#fid': 3L,
'#geometry': 'None',
},
Expand All @@ -1098,7 +1098,7 @@ def test_026_filter_fid():
'description': u'Quoted field',
'data': u'Quoted data',
'info': u'Unquoted',
'field_5': u'None',
'field_5': u'NULL',
'#fid': 3L,
'#geometry': 'None',
},
Expand Down Expand Up @@ -1163,7 +1163,7 @@ def test_027_filter_attributes():
'id': u'None',
'description': u'Missing fields',
'data': u'None',
'info': u'None',
'info': u'NULL',
'field_5': u'None',
'#fid': 10L,
'#geometry': 'None',
Expand Down Expand Up @@ -1229,7 +1229,7 @@ def test_028_substring_test():
'description': u'Basic unquoted record',
'data': u'Some data',
'info': u'Some info',
'field_5': u'None',
'field_5': u'NULL',
'#fid': 2L,
'#geometry': 'None',
},
Expand All @@ -1238,7 +1238,7 @@ def test_028_substring_test():
'description': u'Escaped quotes',
'data': u'Quoted "citation" data',
'info': u'Unquoted',
'field_5': u'None',
'field_5': u'NULL',
'#fid': 4L,
'#geometry': 'None',
},
Expand Down Expand Up @@ -1898,7 +1898,7 @@ def test_033_reset_subset_string():
'description': u'Basic unquoted record',
'data': u'Some data',
'info': u'Some info',
'field_5': u'None',
'field_5': u'NULL',
'#fid': 2L,
'#geometry': 'None',
},
Expand All @@ -1907,7 +1907,7 @@ def test_033_reset_subset_string():
'description': u'Quoted field',
'data': u'Quoted data',
'info': u'Unquoted',
'field_5': u'None',
'field_5': u'NULL',
'#fid': 3L,
'#geometry': 'None',
},
Expand All @@ -1916,7 +1916,7 @@ def test_033_reset_subset_string():
'description': u'Escaped quotes',
'data': u'Quoted "citation" data',
'info': u'Unquoted',
'field_5': u'None',
'field_5': u'NULL',
'#fid': 4L,
'#geometry': 'None',
},
Expand All @@ -1925,7 +1925,7 @@ def test_033_reset_subset_string():
'description': u'Quoted newlines',
'data': u'Line 1\nLine 2\n\nLine 4',
'info': u'No data',
'field_5': u'None',
'field_5': u'NULL',
'#fid': 5L,
'#geometry': 'None',
},
Expand All @@ -1941,9 +1941,9 @@ def test_033_reset_subset_string():
10L: {
'id': u'6',
'description': u'Missing fields',
'data': u'None',
'info': u'None',
'field_5': u'None',
'data': u'NULL',
'info': u'NULL',
'field_5': u'NULL',
'#fid': 10L,
'#geometry': 'None',
},
Expand All @@ -1952,7 +1952,7 @@ def test_033_reset_subset_string():
'description': u'Basic unquoted record',
'data': u'Some data',
'info': u'Some info',
'field_5': u'None',
'field_5': u'NULL',
'#fid': 2L,
'#geometry': 'None',
},
Expand All @@ -1961,7 +1961,7 @@ def test_033_reset_subset_string():
'description': u'Escaped quotes',
'data': u'Quoted "citation" data',
'info': u'Unquoted',
'field_5': u'None',
'field_5': u'NULL',
'#fid': 4L,
'#geometry': 'None',
},
Expand All @@ -1977,9 +1977,9 @@ def test_033_reset_subset_string():
4010L: {
'id': u'6',
'description': u'Missing fields',
'data': u'None',
'info': u'None',
'field_5': u'None',
'data': u'NULL',
'info': u'NULL',
'field_5': u'NULL',
'#fid': 10L,
'#geometry': 'None',
},
Expand All @@ -1988,7 +1988,7 @@ def test_033_reset_subset_string():
'description': u'Escaped quotes',
'data': u'Quoted "citation" data',
'info': u'Unquoted',
'field_5': u'None',
'field_5': u'NULL',
'#fid': 4L,
'#geometry': 'None',
},
Expand All @@ -1997,7 +1997,7 @@ def test_033_reset_subset_string():
'description': u'Basic unquoted record',
'data': u'Some data',
'info': u'Some info',
'field_5': u'None',
'field_5': u'NULL',
'#fid': 2L,
'#geometry': 'None',
},
Expand All @@ -2006,7 +2006,7 @@ def test_033_reset_subset_string():
'description': u'Escaped quotes',
'data': u'Quoted "citation" data',
'info': u'Unquoted',
'field_5': u'None',
'field_5': u'NULL',
'#fid': 4L,
'#geometry': 'None',
},
Expand All @@ -2024,7 +2024,7 @@ def test_033_reset_subset_string():
'description': u'Quoted field',
'data': u'Quoted data',
'info': u'Unquoted',
'field_5': u'None',
'field_5': u'NULL',
'#fid': 3L,
'#geometry': 'None',
},
Expand All @@ -2033,16 +2033,16 @@ def test_033_reset_subset_string():
'description': u'Quoted newlines',
'data': u'Line 1\nLine 2\n\nLine 4',
'info': u'No data',
'field_5': u'None',
'field_5': u'NULL',
'#fid': 5L,
'#geometry': 'None',
},
10010L: {
'id': u'6',
'description': u'Missing fields',
'data': u'None',
'info': u'None',
'field_5': u'None',
'data': u'NULL',
'info': u'NULL',
'field_5': u'NULL',
'#fid': 10L,
'#geometry': 'None',
},
Expand Down Expand Up @@ -2097,7 +2097,7 @@ def test_035_csvt_file2():
'f2': u'1.2',
'f3': u'1',
'f4': u'text',
'f5': u'None',
'f5': u'NULL',
'#fid': 2L,
'#geometry': 'None',
},
Expand Down
2 changes: 2 additions & 0 deletions tests/testdata/zip/points3.geojson.gz.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
compressed_size=660
uncompressed_size=3328