Skip to content

Commit

Permalink
fix fixture terms_from_db_example
Browse files Browse the repository at this point in the history
  • Loading branch information
edulauer committed Aug 27, 2024
1 parent a178305 commit 0e00319
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions tests/parsers_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,18 +126,22 @@
"dataset": None,
"search": [
{
"terms": [],
"terms": {
"from_airflow_variable": None,
"from_db_select": {
"sql": (
"SELECT 'cloroquina' as TERMO, 'Ações inefetivas' as GRUPO "
"UNION SELECT 'ivermectina' as TERMO, 'Ações inefetivas' as GRUPO "
"UNION SELECT 'vacina contra covid' as TERMO, 'Ações efetivas' as GRUPO "
"UNION SELECT 'higienização das mãos' as TERMO, 'Ações efetivas' as GRUPO "
"UNION SELECT 'uso de máscara' as TERMO, 'Ações efetivas' as GRUPO "
"UNION SELECT 'distanciamento social' as TERMO, 'Ações efetivas' as GRUPO\n"
),
"conn_id": "example_database_conn",
}
},
"header": None,
"sources": ["DOU"],
"sql": (
"SELECT 'cloroquina' as TERMO, 'Ações inefetivas' as GRUPO "
"UNION SELECT 'ivermectina' as TERMO, 'Ações inefetivas' as GRUPO "
"UNION SELECT 'vacina contra covid' as TERMO, 'Ações efetivas' as GRUPO "
"UNION SELECT 'higienização das mãos' as TERMO, 'Ações efetivas' as GRUPO "
"UNION SELECT 'uso de máscara' as TERMO, 'Ações efetivas' as GRUPO "
"UNION SELECT 'distanciamento social' as TERMO, 'Ações efetivas' as GRUPO\n"
),
"conn_id": "example_database_conn",
"territory_id": None,
"dou_sections": ["TODOS"],
"date": "MES",
Expand Down

0 comments on commit 0e00319

Please sign in to comment.