Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

Commit

Permalink
Ignora algumas linhas para o coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
AtilioA committed May 4, 2020
1 parent ee76416 commit 81d54f3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions COVID19_ES_Py/relatorio.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@ def __init__(self, nome):
self.obitos = 0

# Objetos do tipo Municipio podem ser comparados alfabeticamente
def __eq__(self, other):
def __eq__(self, other): # pragma: no cover
return (self.nome.lower() == other.nome.lower())

def __lt__(self, other):
def __lt__(self, other): # pragma: no cover
return (self.nome.lower() < other.nome.lower())

def __str__(self):
def __str__(self): # pragma: no cover
return f"Munic铆pio {self.nome}:\n{self.casosConfirmados} casos confirmados.\n{self.obitos} 贸bitos."

def __repr__(self):
def __repr__(self): # pragma: no cover
return f"{{'casosConfirmados': {self.casosConfirmados}, 'obitos': {self.obitos}}}"


Expand Down Expand Up @@ -144,8 +144,8 @@ def __init__(self,
self.viagemBrasil = viagemBrasil
self.viagemInternacional = viagemInternacional

def __str__(self):
return f"Caso de {self.data} - {self.classificacao} em {self.municipio}"
def __str__(self): # pragma: no cover
return f"Caso de {self.data} - {self.classificacao} em {self.municipio}" # pragma: no cover

def carrega_dados_linha(self, linha):
"""Carrega os dados presentes em uma linha do csv para o objeto Caso.
Expand Down Expand Up @@ -402,7 +402,7 @@ def filtra_casos_no_dia(self, data):
raise RelatorioError(
"N茫o 茅 poss铆vel filtrar pois o relat贸rio est谩 vazio (use o m茅todo popula_relatorio() para preencher o relat贸rio).")

def __str__(self):
def __str__(self): # pragma: no cover
if self.csv:
return f"Leitor de relat贸rios carregado com {self.csv}."
else:
Expand Down

0 comments on commit 81d54f3

Please sign in to comment.