-
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.
Merge pull request #1 from Tech-Preta/develop
Develop
- Loading branch information
Showing
6 changed files
with
76 additions
and
5 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,2 @@ | ||
tests/__pycache__ | ||
.vscode |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
""" | ||
Este é o módulo principal do projeto aws_cost_py. | ||
Ele importa e executa as funções do módulo analise_de_custos. | ||
""" | ||
|
||
from .analise_de_custos import get_custom_date_range, list_costs_by_service | ||
|
||
def main(): | ||
""" | ||
Função principal que solicita ao usuário um intervalo de datas e lista os custos dos serviços AWS para esse intervalo. | ||
""" | ||
start_date, end_date = get_custom_date_range() | ||
list_costs_by_service(start_date, end_date) | ||
|
||
if __name__ == "__main__": | ||
main() |
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
""" | ||
Este é o módulo de teste para o módulo analise_de_custos. | ||
Ele contém testes unitários para as funções get_custom_date_range e list_costs_by_service. | ||
""" | ||
|
||
import unittest | ||
from analise_de_custos import get_custom_date_range | ||
|
||
class TestAnaliseDeCustos(unittest.TestCase): | ||
""" | ||
Esta classe contém testes unitários para o módulo analise_de_custos. | ||
""" | ||
|
||
def test_get_custom_date_range_valid_input(self): | ||
""" | ||
Testa a função get_custom_date_range com uma entrada válida. | ||
""" | ||
input_start_date, input_end_date = get_custom_date_range() |