Add test files for csv-normaliser script

This commit is contained in:
2024-08-15 22:44:37 +10:00
parent d9cb183b2a
commit b8ea6e8436
6 changed files with 35 additions and 1 deletions

View File

@@ -6,7 +6,7 @@
"type": "php",
"request": "launch",
"program": "${workspaceFolder}/main.php",
"args": [],
"args": ["--input", "${workspaceFolder}/test-input.csv", "--media", "${workspaceFolder}/test-media", "--output", "${workspaceFolder}/test-output.csv",],
"cwd": "${workspaceFolder}",
"port": 9000
}

View File

@@ -0,0 +1,30 @@
Data for TEST,,,,
Password,,Obtain a password to upload this file from the webmaster of https://streetspeoplelove.org/,,
Your phone number,,"Not for publication, campaign use only",,
Your email,,"Not for publication, campaign use only",,
Ward,BABABI DJINANANG,,,
Candidate,Joe Blogs,4,Party or Independent,"replace ""example name"" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required. "
Candidate,Jane Doe,Good,Party or Independent,"replace ""example name"" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required. "
Ward,BOX FOREST,,,
Candidate,First Last,,Party or Independent,"replace ""example name"" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required. "
Candidate, example name,score,Party or Independent,"replace ""example name"" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required. "
Ward,BRUNSWICK WEST,,,
Candidate, example name,score,Party or Independent,"replace ""example name"" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required. "
Ward,BULLEKE-BEK,,,
Candidate, example name,score,Party or Independent,"replace ""example name"" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required. "
Ward,DJIRRI-DJIRRI,,,
Candidate, example name,score,Party or Independent,"replace ""example name"" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required. "
Ward,HARMONY PARK,,,
Candidate, example name,score,Party or Independent,"replace ""example name"" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required. "
Ward,PASCOE VALE SOUTH,,,
Candidate, example name,score,Party or Independent,"replace ""example name"" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required. "
Ward,PENTRIDGE,,,
Candidate, example name,score,Party or Independent,"replace ""example name"" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required. "
Ward,RANDAZZO,,,
Candidate, example name,score,Party or Independent,"replace ""example name"" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required. "
Ward,WARRK-WARRK,,,
Candidate, example name,score,Party or Independent,"replace ""example name"" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required. "
Ward,WESTBREEN,,,
Candidate, example name,score,Party or Independent,"replace ""example name"" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required. "
,,,,
Get help filling in this form email webmaster@streetspeoplelove.org,,,,
1 Data for TEST
2 Password Obtain a password to upload this file from the webmaster of https://streetspeoplelove.org/
3 Your phone number Not for publication, campaign use only
4 Your email Not for publication, campaign use only
5 Ward BABABI DJINANANG
6 Candidate Joe Blogs 4 Party or Independent replace "example name" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required.
7 Candidate Jane Doe Good Party or Independent replace "example name" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required.
8 Ward BOX FOREST
9 Candidate First Last Party or Independent replace "example name" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required.
10 Candidate example name score Party or Independent replace "example name" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required.
11 Ward BRUNSWICK WEST
12 Candidate example name score Party or Independent replace "example name" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required.
13 Ward BULLEKE-BEK
14 Candidate example name score Party or Independent replace "example name" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required.
15 Ward DJIRRI-DJIRRI
16 Candidate example name score Party or Independent replace "example name" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required.
17 Ward HARMONY PARK
18 Candidate example name score Party or Independent replace "example name" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required.
19 Ward PASCOE VALE SOUTH
20 Candidate example name score Party or Independent replace "example name" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required.
21 Ward PENTRIDGE
22 Candidate example name score Party or Independent replace "example name" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required.
23 Ward RANDAZZO
24 Candidate example name score Party or Independent replace "example name" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required.
25 Ward WARRK-WARRK
26 Candidate example name score Party or Independent replace "example name" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required.
27 Ward WESTBREEN
28 Candidate example name score Party or Independent replace "example name" with a candidate's name. Score should be an integer from 0 to your highest score. Make more of these rows as required.
29
30 Get help filling in this form email webmaster@streetspeoplelove.org

View File

View File

@@ -0,0 +1,4 @@
Ward,"Candidate Name",Rating,Picture
"Bababi Djinanang","Joe Blogs",4,"Joe Blogs.jpg"
"Bababi Djinanang","Jane Doe",Good,"JaneDoe square.png"
"Box Forest","First Last",,LAST_FIRST.jpeg
1 Ward Candidate Name Rating Picture
2 Bababi Djinanang Joe Blogs 4 Joe Blogs.jpg
3 Bababi Djinanang Jane Doe Good JaneDoe square.png
4 Box Forest First Last LAST_FIRST.jpeg