-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'refs/remotes/origin/main'
- Loading branch information
Showing
9 changed files
with
145 additions
and
6 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
dag_confs/examples_and_tests/header_and_footer_example.yaml
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 @@ | ||
dag: | ||
id: header_and_footer_example | ||
description: DAG de teste | ||
tags: | ||
- dou | ||
schedule: 0 8 * * MON-FRI | ||
search: | ||
sources: | ||
- DOU | ||
terms: | ||
- tecnologia | ||
- informação | ||
department: | ||
- Ministério da Gestão e da Inovação em Serviços Públicos | ||
- Ministério da Defesa | ||
report: | ||
emails: | ||
- [email protected] | ||
subject: "Teste do Ro-dou" | ||
header_text: <p><strong>Greetings<strong></p> | ||
footer_text: <p>Best Regards</p> |
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
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
* { | ||
font-family: 'rawline',sans-serif; | ||
text-align: justify; | ||
} | ||
a:link { | ||
color: black; | ||
|
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 |
---|---|---|
|
@@ -69,6 +69,8 @@ def test_hash_dag_id(yaml_parser, dag_id, size, hashed): | |
"dag_tags": {"dou", "generated_dag"}, | ||
"owner": "", | ||
"hide_filters": False, | ||
"header_text": None, | ||
"footer_text": None, | ||
}, | ||
), | ||
( | ||
|
@@ -109,6 +111,8 @@ def test_hash_dag_id(yaml_parser, dag_id, size, hashed): | |
"dag_tags": {"dou", "generated_dag", "projeto_a", "departamento_x"}, | ||
"owner": "pessoa 1, pessoa 2", | ||
"hide_filters": False, | ||
"header_text": None, | ||
"footer_text": None, | ||
}, | ||
), | ||
( | ||
|
@@ -152,6 +156,8 @@ def test_hash_dag_id(yaml_parser, dag_id, size, hashed): | |
"dag_tags": {"dou", "generated_dag"}, | ||
"owner": "", | ||
"hide_filters": False, | ||
"header_text": None, | ||
"footer_text": None, | ||
}, | ||
), | ||
( | ||
|
@@ -188,6 +194,8 @@ def test_hash_dag_id(yaml_parser, dag_id, size, hashed): | |
"dag_tags": {"dou", "generated_dag"}, | ||
"owner": "", | ||
"hide_filters": False, | ||
"header_text": None, | ||
"footer_text": None, | ||
}, | ||
), | ||
( | ||
|
@@ -236,6 +244,8 @@ def test_hash_dag_id(yaml_parser, dag_id, size, hashed): | |
"dag_tags": {"dou", "generated_dag"}, | ||
"owner": "", | ||
"hide_filters": False, | ||
"header_text": None, | ||
"footer_text": None, | ||
}, | ||
), | ||
( | ||
|
@@ -275,6 +285,8 @@ def test_hash_dag_id(yaml_parser, dag_id, size, hashed): | |
"dag_tags": {"dou", "generated_dag"}, | ||
"owner": "", | ||
"hide_filters": False, | ||
"header_text": None, | ||
"footer_text": None, | ||
}, | ||
), | ||
( | ||
|
@@ -311,6 +323,8 @@ def test_hash_dag_id(yaml_parser, dag_id, size, hashed): | |
"dag_tags": {"dou", "generated_dag", "inlabs"}, | ||
"owner": "cdata", | ||
"hide_filters": False, | ||
"header_text": None, | ||
"footer_text": None, | ||
}, | ||
), | ||
( | ||
|
@@ -350,6 +364,8 @@ def test_hash_dag_id(yaml_parser, dag_id, size, hashed): | |
"dag_tags": {"dou", "generated_dag", "inlabs"}, | ||
"owner": "cdata", | ||
"hide_filters": False, | ||
"header_text": None, | ||
"footer_text": None, | ||
}, | ||
), | ||
( | ||
|
@@ -410,6 +426,8 @@ def test_hash_dag_id(yaml_parser, dag_id, size, hashed): | |
"dag_tags": {"dou", "generated_dag", "inlabs"}, | ||
"owner": "", | ||
"hide_filters": False, | ||
"header_text": None, | ||
"footer_text": None, | ||
}, | ||
), | ||
( | ||
|
@@ -449,10 +467,54 @@ def test_hash_dag_id(yaml_parser, dag_id, size, hashed): | |
"dag_tags": {"dou", "inlabs", "generated_dag"}, | ||
"owner": "", | ||
"hide_filters": True, | ||
"header_text": None, | ||
"footer_text": None, | ||
}, | ||
), | ||
( | ||
"header_and_footer_example.yaml", | ||
{ | ||
"dag_id": "header_and_footer_example", | ||
"search": [ | ||
{ | ||
"terms": ["tecnologia", "informação"], | ||
"header": None, | ||
"sources": ["DOU"], | ||
"sql": None, | ||
"conn_id": None, | ||
"territory_id": None, | ||
"dou_sections": ["TODOS"], | ||
"search_date": "DIA", | ||
"field": "TUDO", | ||
"is_exact_search": True, | ||
"ignore_signature_match": False, | ||
"force_rematch": None, | ||
"full_text": None, | ||
"department": [ | ||
"Ministério da Gestão e da Inovação em Serviços Públicos", | ||
"Ministério da Defesa", | ||
], | ||
} | ||
], | ||
"emails": ["[email protected]"], | ||
"subject": "Teste do Ro-dou", | ||
"attach_csv": False, | ||
"discord_webhook": None, | ||
"slack_webhook": None, | ||
"schedule": "0 8 * * MON-FRI", | ||
"description": "DAG de teste", | ||
"skip_null": True, | ||
"doc_md": None, | ||
"dag_tags": {"dou", "generated_dag"}, | ||
"owner": "", | ||
"hide_filters": False, | ||
"header_text": "<p><strong>Greetings<strong></p>", | ||
"footer_text": "<p>Best Regards</p>", | ||
}, | ||
), | ||
], | ||
) | ||
|
||
def test_parse(filepath, result_tuple): | ||
filepath = os.path.join( | ||
DouDigestDagGenerator().YAMLS_DIR, "examples_and_tests", filepath | ||
|