Skip to content

Commit

Permalink
arreglo sample de several_datasets_for_harvest y resultado esperado
Browse files Browse the repository at this point in the history
  • Loading branch information
lrromero committed Jul 3, 2018
1 parent b1d44d5 commit 0b24fe5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions tests/samples/several_datasets_for_harvest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"title": "Cosechando Datos Argentina",
"dataset": [
{
"identifier": "1",
"publisher": {},
"description": "Datos correspondientes al Sistema de Contrataciones Electrónicas (Argentina Compra)",
"superTheme": [
Expand Down Expand Up @@ -47,6 +48,7 @@
]
},
{
"identifier": "2",
"publisher": {
"name": "Ministerio de Modernización. Secretaría de Modernización Administrativa. Oficina Nacional de Contrataciones"
},
Expand All @@ -68,6 +70,7 @@
]
},
{
"identifier": "3",
"publisher": {
"name": "Ministerio de Modernización. Secretaría de Modernización Administrativa. Oficina Nacional de Contrataciones"
},
Expand Down
6 changes: 3 additions & 3 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,19 +553,19 @@ def test_generate_datasets_summary(self):
expected = [
OrderedDict([('indice', 0),
('titulo', 'Sistema de contrataciones electrónicas UNO'),
('identificador', None),
('identificador', '1'),
('estado_metadatos', 'ERROR'),
('cant_errores', 4),
('cant_distribuciones', 4)]),
OrderedDict([('indice', 1),
('titulo', 'Sistema de contrataciones electrónicas DOS'),
('identificador', None),
('identificador', '2'),
('estado_metadatos', 'OK'),
('cant_errores', 0),
('cant_distribuciones', 1)]),
OrderedDict([('indice', 2),
('titulo', 'Sistema de contrataciones electrónicas TRES'),
('identificador', None),
('identificador', '3'),
('estado_metadatos', 'OK'),
('cant_errores', 0),
('cant_distribuciones', 1)])]
Expand Down

0 comments on commit 0b24fe5

Please sign in to comment.