[mocks][xs]: add reosurce urls and add 'package_show' mock for 'population' dataset.

This commit is contained in:
anuveyatsu
2020-06-15 11:50:47 +06:00
parent 8abf32c402
commit 77275da1ab

View File

@@ -10,7 +10,9 @@ const gdp = {
"title": "GDP data", "title": "GDP data",
"format": "csv", "format": "csv",
"created": "2019-03-07T12:00:36.273495", "created": "2019-03-07T12:00:36.273495",
"last_modified": "2020-05-07T12:00:36.273495" "last_modified": "2020-05-07T12:00:36.273495",
"datastore_active": false,
"url": "https://raw.githubusercontent.com/datasets/gdp/master/data/gdp.csv"
} }
], ],
"organization": { "organization": {
@@ -34,7 +36,9 @@ const population = {
"title": "Population data", "title": "Population data",
"format": "csv", "format": "csv",
"created": "2019-03-07T12:00:36.273495", "created": "2019-03-07T12:00:36.273495",
"last_modified": "2020-05-07T12:00:36.273495" "last_modified": "2020-05-07T12:00:36.273495",
"datastore_active": true,
"url": "https://raw.githubusercontent.com/datasets/gdp/master/data/gdp.csv"
} }
], ],
"organization": { "organization": {
@@ -92,6 +96,9 @@ module.exports.initMocks = function() {
"success": true, "success": true,
"result": gdp "result": gdp
}) })
.get('/package_show?id=population')
// "organization_show" mocks .reply(200, {
"success": true,
"result": population
})
} }