Skip to content

Commit

Permalink
Merge pull request #134 from fga-eps-mds/hotfix/fixtures
Browse files Browse the repository at this point in the history
Hotfix/fixtures
  • Loading branch information
Matheus Joranhezon authored Oct 4, 2018
2 parents f0cf539 + c452faf commit 99b92ec
Show file tree
Hide file tree
Showing 11 changed files with 1,145 additions and 227 deletions.
99 changes: 47 additions & 52 deletions src/comex_stat/assets/fixtures/assetexportfacts.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,85 +3,80 @@
"model": "assets.assetexportfacts",
"pk": 1,
"fields": {
"origin_fed_unit": "RS",
"destination_country": "Bolívia",
"date": "03/2018",
"origin_fed_unit": 45,
"destination_country": 97,
"date": "2018-03-01",
"name": "Outras partes para motores de explosão",
"ncm": "84099190",
"port": "0147600 - ALF - CORUMBÁ",
"port_code": "0147600",
"transportation": "FERROVIARIA",
"registries": "1",
"net_kilogram": "1",
"fob_value": "191"
"ncm": 84099190,
"urf": 147600,
"transportation": 1,
"registries": 1,
"net_kilogram": 1,
"fob_value": 191
}
},
{
"model": "assets.assetexportfacts",
"pk": 2,
"fields": {
"origin_fed_unit": "SP",
"destination_country": "Honduras",
"date": "03/2018",
"origin_fed_unit": 41,
"destination_country": 345,
"date": "2018-03-05",
"name": "Painéis de fibras madeira de média densidade (denominados MDF), com densidade superior a 0,8 g/cm3, não trabalhados mecanicamente nem recobertos à superfície",
"ncm": "44119210",
"port": "0147600 - ALF - CORUMBÁ",
"port_code": "147600",
"transportation": "RODOVIARIA",
"registries": "39",
"net_kilogram": "39071",
"fob_value": "16590"
"ncm": 44119210,
"urf": 147600,
"transportation": 1,
"registries": 39,
"net_kilogram": 39071,
"fob_value": 16590
}
},
{
"model": "assets.assetexportfacts",
"pk": 3,
"fields": {
"origin_fed_unit": "SP",
"destination_country": "Uruguai",
"date": "03/18",
"origin_fed_unit": 41,
"destination_country": 845,
"date": "2018-03-09",
"name": "Calças, jardineiras, bermudas e shorts (calções), de uso feminino, de fibras sintéticas",
"ncm": "62046300",
"port": "0817700 - AEROPORTO INTERNACIONAL DE VIRACOPOS",
"port_code": "0817700",
"transportation": "AEREA",
"registries": "14",
"net_kilogram": "6",
"fob_value": "769"
"ncm": 62046300,
"urf": 817700,
"transportation": 4,
"registries": 14,
"net_kilogram": 6,
"fob_value": 769
}
},
{
"model": "assets.assetexportfacts",
"pk": 4,
"fields": {
"origin_fed_unit": "SP",
"destination_country": "Paraguai",
"date": "08/2018",
"name": "Outros produtos de beleza ou de maquiagem preparados, etc",
"ncm": "33049990",
"port": "0917500 - ALF - FOZ DO IGUAÇU",
"port_code": "0917500",
"transportation": "FERROVIARIA",
"registries": "3399",
"net_kilogram": "3399",
"fob_value": "39508"
"origin_fed_unit": 41,
"destination_country": 586,
"date": "2018-08-15",
"name": "Produtos de maquiagem para os lábios",
"ncm": 33049990,
"urf": 917500,
"transportation": 6,
"registries": 3399,
"net_kilogram": 3399,
"fob_value": 39508
}
},
{
"model": "assets.assetexportfacts",
"pk": 5,
"fields": {
"origin_fed_unit": "MG",
"destination_country": "Equador",
"date": "06/2018",
"origin_fed_unit": 33,
"destination_country": 239,
"date": "2018-06-19",
"name": "Outros parafusos e pinos ou pernos, mesmo com as porcas e arruelas, de ferro fundido, ferro ou aço",
"ncm": "73181500",
"port": "0817700 - AEROPORTO INTERNACIONAL DE VIRACOPOS",
"port_code": "0817700",
"transportation": "AEREA",
"registries": "0",
"net_kilogram": "0",
"fob_value": "9"
"ncm": 73181500,
"urf": 817700,
"transportation": 4,
"registries": 0,
"net_kilogram": 0,
"fob_value": 9
}
},
}
]
95 changes: 45 additions & 50 deletions src/comex_stat/assets/fixtures/assetimportfacts.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,85 +3,80 @@
"model": "assets.assetimportfacts",
"pk": 1,
"fields": {
"destination_fed_unit": "BA",
"origin_country": "Alemanha",
"date": "05/2018",
"destination_fed_unit": 32,
"origin_country": 23,
"date": "2018-05-01",
"name": "Guarnições para móveis, carrocerias e semelhantes, de plásticos",
"ncm": "39263000",
"port": "0817800 - PORTO DE SANTOS",
"port_code": "0817800",
"transportation": "MARITIMA",
"registries": "4",
"net_kilogram": "4",
"fob_value": "555"
"ncm": 39263000,
"transportation": 1,
"urf": 817800,
"registries": 4,
"net_kilogram": 4,
"fob_value": 555
}
},
{
"model": "assets.assetimportfacts",
"pk": 2,
"fields": {
"destination_fed_unit": "SP",
"origin_country": "Estados Unidos",
"date": "05/2018",
"destination_fed_unit": 41,
"origin_country": 249,
"date": "2018-05-01",
"name": "Outras obras de cortiça aglomerada",
"ncm": "45049000",
"port": "0000000",
"port_code": "0000000 - NAO INFORMADO",
"transportation": "VIA NAO DECLARADA",
"registries": "26",
"net_kilogram": "26",
"fob_value": "3215"
"ncm": 45049000,
"urf": 0,
"transportation": 0,
"registries": 26,
"net_kilogram": 26,
"fob_value": 3215
}
},
{
"model": "assets.assetimportfacts",
"pk": 3,
"fields": {
"destination_fed_unit": "PE",
"origin_country": "China",
"date": "05/2018",
"destination_fed_unit": 26,
"origin_country": 160,
"date": "2018-05-01",
"name": "Porcas de ferro fundido, ferro ou aço",
"ncm": "73181600",
"port": "0417902 - IRF - PORTO DE SUAPE",
"port_code": "0417902",
"transportation": "MARITIMA",
"registries": "370",
"net_kilogram": "370",
"fob_value": "2283"
"ncm": 73181600,
"urf": 417902,
"transportation": 1,
"registries": 370,
"net_kilogram": 370,
"fob_value": 2283
}
},
{
"model": "assets.assetimportfacts",
"pk": 4,
"fields": {
"destination_fed_unit": "SP",
"origin_country": "Estados Unidos",
"date": "05/2018",
"destination_fed_unit": 41,
"origin_country": 249,
"date": "2018-05-01",
"name": "Outras partes de bombas para líquidos",
"ncm": "84139190",
"port": "0817600 - AEROPORTO INTERNACIONAL DE SAO PAULO/GUARULHOS",
"port_code": "817600",
"transportation": "AEREA",
"registries": "4424",
"net_kilogram": "4424",
"fob_value": "332623"
"ncm": 84139190,
"urf": 817600,
"transportation": 4,
"registries": 4424,
"net_kilogram": 4424,
"fob_value": 332623
}
},
{
"model": "assets.assetimportfacts",
"pk": 5,
"fields": {
"destination_fed_unit": "SP",
"origin_country": "Itália",
"date": "05/2018",
"destination_fed_unit": 41,
"origin_country": 386,
"date": "2018-05-01",
"name": "Outras partes de bombas para líquidos",
"ncm": "84139190",
"port": "0817600 - AEROPORTO INTERNACIONAL DE SAO PAULO/GUARULHOS",
"port_code": "817600",
"transportation": "AEREA",
"registries": "464",
"net_kilogram": "464",
"fob_value": "31454"
"ncm": 84139190,
"urf": 817600,
"transportation": 4,
"registries": 464,
"net_kilogram": 464,
"fob_value": 31454
}
}
]
92 changes: 92 additions & 0 deletions src/comex_stat/assets/fixtures/cgce.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
[
{
"model": "assets.CGCE",
"pk": 280,
"fields": {
"level1_code": "280",
"level1_name_pt": "Peças para equipamentos de transporte",
"level1_name_en": "Parts for transport equipment",
"level1_name_es": "Piezas para equipos de transporte",
"level2_code": "28",
"level2_name_pt": "Peças para equipamentos de transporte",
"level2_name_en": "Parts for transport equipment",
"level2_name_es": "Piezas para equipos de transporte",
"level3_code": "2",
"level3_name_pt": "BENS INTERMEDIÁRIOS (BI)",
"level3_name_en": "INTERMEDIATE GOODS (BI)",
"level3_name_es": "BIENES INTERMEDIOS (BI)"
}
},
{
"model": "assets.CGCE",
"pk": 240,
"fields": {
"level1_code": "240",
"level1_name_pt": "Insumos industriais elaborados",
"level1_name_en": "Elaborated industrial inputs",
"level1_name_es": "Insumos industriales elaborados",
"level2_code": "24",
"level2_name_pt": "Insumos industriais elaborados",
"level2_name_en": "Elaborated industrial inputs",
"level2_name_es": "Insumos industriales elaborados",
"level3_code": "2",
"level3_name_pt": "BENS INTERMEDIÁRIOS (BI)",
"level3_name_en": "INTERMEDIATE GOODS (BI)",
"level3_name_es": "BIENES INTERMEDIOS (BI)"
}
},
{
"model": "assets.CGCE",
"pk": 321,
"fields": {
"level1_code": "321",
"level1_name_pt": "Bens de consumo semiduráveis",
"level1_name_en": "Semi-durable consumer goods",
"level1_name_es": "Bienes de consumo semidurables",
"level2_code": "321",
"level2_name_pt": "Bens de consumo semiduráveis e não duráveis",
"level2_name_en": "Consumer goods semi-durable and non-durable",
"level2_name_es": "Bienes de consumo semidurables y no durables",
"level3_code": "3",
"level3_name_pt": "BENS DE CONSUMO (BC)",
"level3_name_en": "CONSUMER GOODS (BC)",
"level3_name_es": "BIENES DE CONSUMO (BC)"
}
},
{
"model": "assets.CGCE",
"pk": 322,
"fields": {
"level1_code": "322",
"level1_name_pt": "Bens de consumo não duráveis",
"level1_name_en": "Non-durable goods",
"level1_name_es": "Bienes de consumo no durables",
"level2_code": "32",
"level2_name_pt": "Bens de consumo semiduráveis e não duráveis",
"level2_name_en": "Consumer goods semi-durable and non-durable",
"level2_name_es": "Bienes de consumo semidurables y no durables",
"level3_code": "3",
"level3_name_pt": "BENS DE CONSUMO (BC)",
"level3_name_en": "CONSUMER GOODS (BC)",
"level3_name_es": "BIENES DE CONSUMO (BC)"
}
},
{
"model": "assets.CGCE",
"pk": 270,
"fields": {
"level1_code": "270",
"level1_name_pt": "Peças e acessórios para bens de capital",
"level1_name_en": "Parts and accessories for capital goods",
"level1_name_es": "Piezas y accesorios para bienes de capital",
"level2_code": "27",
"level2_name_pt": "Peças e acessórios para bens de capital",
"level2_name_en": "Parts and accessories for capital goods",
"level2_name_es": "Piezas y accesorios para bienes de capital",
"level3_code": "2",
"level3_name_pt": "BENS INTERMEDIÁRIOS (BI)",
"level3_name_en": "INTERMEDIATE GOODS (BI)",
"level3_name_es": "BIENES INTERMEDIOS (BI)"
}
}
]
Loading

0 comments on commit 99b92ec

Please sign in to comment.