Add test files for csv-normaliser script
This commit is contained in:
2
csv-normaliser/.vscode/launch.json
vendored
2
csv-normaliser/.vscode/launch.json
vendored
@@ -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
|
||||
}
|
||||
|
||||
30
csv-normaliser/test-input.csv
Normal file
30
csv-normaliser/test-input.csv
Normal 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,,,,
|
||||
|
0
csv-normaliser/test-media/JaneDoe square.png
Normal file
0
csv-normaliser/test-media/JaneDoe square.png
Normal file
0
csv-normaliser/test-media/Joe Blogs.jpg
Normal file
0
csv-normaliser/test-media/Joe Blogs.jpg
Normal file
0
csv-normaliser/test-media/LAST_FIRST.jpeg
Normal file
0
csv-normaliser/test-media/LAST_FIRST.jpeg
Normal file
4
csv-normaliser/test-output.csv
Normal file
4
csv-normaliser/test-output.csv
Normal 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
|
||||
|
Reference in New Issue
Block a user