-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c6413a
commit 6765f86
Showing
5 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
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,10 @@ | ||
import pytest | ||
from compras_automatico import fetch_and_process_data | ||
|
||
def test_process_gazettes_execution(): | ||
try: | ||
fetch_and_process_data('2024-01-01', '2024-01-02') | ||
assert True # Se não houver exceções, o teste passa | ||
except Exception as e: | ||
pytest.fail(f"process_gazettes falhou com a exceção: {e}") | ||
|
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,10 @@ | ||
import pytest | ||
from convenio_automatico import process_gazettes | ||
|
||
def test_process_gazettes_execution(): | ||
try: | ||
process_gazettes() | ||
assert True # Se não houver exceções, o teste passa | ||
except Exception as e: | ||
pytest.fail(f"process_gazettes falhou com a exceção: {e}") | ||
|
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,10 @@ | ||
import pytest | ||
from credito_automatico import process_gazettes | ||
|
||
def test_process_gazettes_execution(): | ||
try: | ||
process_gazettes() | ||
assert True # Se não houver exceções, o teste passa | ||
except Exception as e: | ||
pytest.fail(f"process_gazettes falhou com a exceção: {e}") | ||
|
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,13 @@ | ||
import pytest | ||
import os | ||
|
||
# Caminho do script a ser testado | ||
script_path = os.path.join(os.path.dirname(__file__), 'licitacoes_automatico.py') | ||
|
||
def test_script_execution(): | ||
try: | ||
# Executa o script como um módulo para garantir que ele não gera exceções | ||
exec(open(script_path).read()) | ||
assert True # Se não houver exceções, o teste passa | ||
except Exception as e: | ||
pytest.fail(f"O script falhou com a exceção: {e}") |
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,13 @@ | ||
import pytest | ||
import os | ||
|
||
# Caminho do script a ser testado | ||
script_path = os.path.join(os.path.dirname(__file__), 'verbas_automatico.py') | ||
|
||
def test_script_execution(): | ||
try: | ||
# Executa o script como um módulo para garantir que ele não gera exceções | ||
exec(open(script_path).read()) | ||
assert True # Se não houver exceções, o teste passa | ||
except Exception as e: | ||
pytest.fail(f"O script falhou com a exceção: {e}") |