-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bb tests][xl]: testing entire flow by running the pipelines (#59)
* Fixtures for simple, excel, multi-resource and processing datasets * inputs and expected results * new setup for requirements, tox and Travis * using moto_server to allow S3 operations fixes #48
- Loading branch information
Showing
27 changed files
with
882 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
date,first_name,last_name | ||
2016-10-15,Shaylynn,Eallis | ||
2017-01-18,Patricia,Eefting | ||
2017-03-01,Karrah,Couser | ||
2017-03-17,Rhetta,Price | ||
2016-12-23,Alexandros,Farrand | ||
2017-05-01,Ado,Matejic | ||
2016-10-28,Keene,Tonna | ||
2017-01-31,Helena,Aiskovitch | ||
2017-02-11,Leigh,Butner | ||
2017-01-19,Perle,Work | ||
2016-11-16,Delora,Pavolillo | ||
2017-09-21,Marshall,Leall | ||
2017-04-28,Olwen,Mullin | ||
2016-12-27,Nerta,Enrique | ||
2016-12-07,Ashlie,Bracey | ||
2017-05-18,Dode,Ritmeier | ||
2016-10-16,Agace,Kew | ||
2017-04-08,Beckie,Dove | ||
2017-01-20,Filippa,McPolin | ||
2017-03-19,Madison,Sheekey |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
First three rows need to be removed | ||
headers need to be reset | ||
and dates need to be normalized | ||
DATE,FIRST NAME ,LAST NAME | ||
2016-10-15,Shaylynn,Eallis | ||
2017-1-18,Patricia,Eefting | ||
2017-3-1,Karrah,Couser | ||
2017-3-17,Rhetta,Price | ||
2016-12-23,Alexandros,Farrand | ||
2017-5-1,Ado,Matejic | ||
2016-10-28,Keene,Tonna | ||
2017-1-31,Helena,Aiskovitch | ||
2017-2-11,Leigh,Butner | ||
2017-1-19,Perle,Work | ||
2016-11-16,Delora,Pavolillo | ||
2017-9-21,Marshall,Leall | ||
2017-4-28,Olwen,Mullin | ||
2016-12-27,Nerta,Enrique | ||
2016-12-7,Ashlie,Bracey | ||
2017-5-18,Dode,Ritmeier | ||
2016-10-16,Agace,Kew | ||
2017-4-8,Beckie,Dove | ||
2017-1-20,Filippa,McPolin | ||
2017-3-19,Madison,Sheekey |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
id,email | ||
1,cjozsika0@github.io | ||
2,smegainey1@twitter.com | ||
3,eyesson2@mail.ru | ||
4,aigoe3@usa.gov | ||
5,tkalinowsky4@tamu.edu | ||
6,eprime5@paypal.com | ||
7,fwinchcum6@drupal.org | ||
8,rrivilis7@nationalgeographic.com | ||
9,mbrisley8@creativecommons.org | ||
10,dmacavddy9@stumbleupon.com | ||
11,lbromwicha@hostgator.com | ||
12,kvargab@fotki.com | ||
13,hlintsc@ning.com | ||
14,hravenscraftd@nhs.uk | ||
15,dtrencharde@chicagotribune.com | ||
16,zkurtisf@ucla.edu | ||
17,aindeg@wordpress.com | ||
18,nadaneth@eepurl.com | ||
19,kwerneri@msn.com | ||
20,nmeardonj@springer.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
meta: | ||
dataset: excel | ||
findability: published | ||
owner: datahub | ||
ownerid: datahub | ||
version: 1 | ||
inputs: | ||
- kind: datapackage | ||
parameters: | ||
resource-mapping: | ||
birthdays: ../../data/sample_birthdays.xlsx | ||
url: datapackage.json | ||
outputs: | ||
- kind: zip | ||
parameters: | ||
out-file: 'excel.zip' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "excel", | ||
"resources": [ | ||
{ | ||
"name": "birthdays", | ||
"path": "data/birthdays.xlsx", | ||
"format": "xlsx", | ||
"schema": { | ||
"fields": [ | ||
{ | ||
"name": "date", | ||
"type": "date" | ||
}, | ||
{ | ||
"name": "first_name", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "last_name", | ||
"type": "string" | ||
} | ||
], | ||
"primaryKey": "date" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
meta: | ||
dataset: multiple-files | ||
findability: published | ||
owner: datahub | ||
ownerid: datahub | ||
version: 1 | ||
inputs: | ||
- kind: datapackage | ||
parameters: | ||
resource-mapping: | ||
birthdays: ../../data/sample_birthdays.csv | ||
emails: ../../data/sample_emails.csv | ||
url: datapackage.json | ||
outputs: | ||
- kind: zip | ||
parameters: | ||
out-file: 'multiple-files.zip' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"name": "multiple-files", | ||
"resources": [ | ||
{ | ||
"name": "birthdays", | ||
"path": "data/birthdays.csv", | ||
"format": "csv", | ||
"schema": { | ||
"fields": [ | ||
{ | ||
"name": "date", | ||
"type": "date" | ||
}, | ||
{ | ||
"name": "first_name", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "last_name", | ||
"type": "string" | ||
} | ||
], | ||
"primaryKey": "date" | ||
} | ||
}, | ||
{ | ||
"name": "emails", | ||
"path": "data/emails.csv", | ||
"format": "csv", | ||
"schema": { | ||
"fields": [ | ||
{ | ||
"name": "id", | ||
"type": "number" | ||
}, | ||
{ | ||
"name": "email", | ||
"type": "string" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
meta: | ||
dataset: single-file-processed | ||
findability: published | ||
owner: datahub | ||
ownerid: datahub | ||
version: 1 | ||
inputs: | ||
- kind: datapackage | ||
parameters: | ||
resource-mapping: | ||
birthdays: ../../data/sample_birthdays_invalid.csv | ||
url: datapackage.json | ||
processing: | ||
- | ||
input: birthdays | ||
tabulator: | ||
skip_rows: 4 | ||
headers: | ||
- date | ||
- first_name | ||
- last_name | ||
output: birthdays | ||
outputs: | ||
- kind: zip | ||
parameters: | ||
out-file: 'single-file-processed.zip' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "single-file-processed", | ||
"resources": [ | ||
{ | ||
"name": "birthdays", | ||
"path": "data/birthdays.csv", | ||
"format": "csv", | ||
"schema": { | ||
"fields": [ | ||
{ | ||
"name": "date", | ||
"type": "date" | ||
}, | ||
{ | ||
"name": "first_name", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "last_name", | ||
"type": "string" | ||
} | ||
], | ||
"primaryKey": "date" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
meta: | ||
dataset: single-file | ||
findability: published | ||
owner: datahub | ||
ownerid: datahub | ||
version: 1 | ||
inputs: | ||
- kind: datapackage | ||
parameters: | ||
resource-mapping: | ||
birthdays: ../../data/sample_birthdays.csv | ||
url: datapackage.json | ||
outputs: | ||
- kind: zip | ||
parameters: | ||
out-file: 'single-file.zip' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "single-file", | ||
"resources": [ | ||
{ | ||
"name": "birthdays", | ||
"path": "data/birthdays.csv", | ||
"format": "csv", | ||
"schema": { | ||
"fields": [ | ||
{ | ||
"name": "date", | ||
"type": "date" | ||
}, | ||
{ | ||
"name": "first_name", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "last_name", | ||
"type": "string" | ||
} | ||
], | ||
"primaryKey": "date" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
date,first_name,last_name | ||
2016-10-15,Shaylynn,Eallis | ||
2017-01-18,Patricia,Eefting | ||
2017-03-01,Karrah,Couser | ||
2017-03-17,Rhetta,Price | ||
2016-12-23,Alexandros,Farrand | ||
2017-05-01,Ado,Matejic | ||
2016-10-28,Keene,Tonna | ||
2017-01-31,Helena,Aiskovitch | ||
2017-02-11,Leigh,Butner | ||
2017-01-19,Perle,Work | ||
2016-11-16,Delora,Pavolillo | ||
2017-09-21,Marshall,Leall | ||
2017-04-28,Olwen,Mullin | ||
2016-12-27,Nerta,Enrique | ||
2016-12-07,Ashlie,Bracey | ||
2017-05-18,Dode,Ritmeier | ||
2016-10-16,Agace,Kew | ||
2017-04-08,Beckie,Dove | ||
2017-01-20,Filippa,McPolin | ||
2017-03-19,Madison,Sheekey |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
First three rows need to be removed | ||
headers need to be reset | ||
and dates need to be normalized | ||
DATE,FIRST NAME ,LAST NAME | ||
2016-10-15,Shaylynn,Eallis | ||
2017-1-18,Patricia,Eefting | ||
2017-3-1,Karrah,Couser | ||
2017-3-17,Rhetta,Price | ||
2016-12-23,Alexandros,Farrand | ||
2017-5-1,Ado,Matejic | ||
2016-10-28,Keene,Tonna | ||
2017-1-31,Helena,Aiskovitch | ||
2017-2-11,Leigh,Butner | ||
2017-1-19,Perle,Work | ||
2016-11-16,Delora,Pavolillo | ||
2017-9-21,Marshall,Leall | ||
2017-4-28,Olwen,Mullin | ||
2016-12-27,Nerta,Enrique | ||
2016-12-7,Ashlie,Bracey | ||
2017-5-18,Dode,Ritmeier | ||
2016-10-16,Agace,Kew | ||
2017-4-8,Beckie,Dove | ||
2017-1-20,Filippa,McPolin | ||
2017-3-19,Madison,Sheekey |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
id,email | ||
1,cjozsika0@github.io | ||
2,smegainey1@twitter.com | ||
3,eyesson2@mail.ru | ||
4,aigoe3@usa.gov | ||
5,tkalinowsky4@tamu.edu | ||
6,eprime5@paypal.com | ||
7,fwinchcum6@drupal.org | ||
8,rrivilis7@nationalgeographic.com | ||
9,mbrisley8@creativecommons.org | ||
10,dmacavddy9@stumbleupon.com | ||
11,lbromwicha@hostgator.com | ||
12,kvargab@fotki.com | ||
13,hlintsc@ning.com | ||
14,hravenscraftd@nhs.uk | ||
15,dtrencharde@chicagotribune.com | ||
16,zkurtisf@ucla.edu | ||
17,aindeg@wordpress.com | ||
18,nadaneth@eepurl.com | ||
19,kwerneri@msn.com | ||
20,nmeardonj@springer.com |
Binary file not shown.
Oops, something went wrong.