Skip to content

Commit

Permalink
coverage [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Apr 6, 2023
1 parent ef03f36 commit 95ddd80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pybamm/citations.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def register(self, key):
caller = Citations._caller_name()
self._add_citation_tag(key, entry=caller)
# Don't add citation tags if the citation is registered manually
except KeyError:
except KeyError: # pragma: no cover
pass
return

Expand All @@ -150,7 +150,7 @@ def register(self, key):
# Unable to parse / unknown key
raise KeyError(f"Not a bibtex citation or known citation: {key}")

def tag_citations(self):
def tag_citations(self): # pragma: no cover
"""Prints the citations tags for the citations that have been registered
(non-manually). This is used for verbose output when printing citations
such that it can be seen which citations were registered by PyBaMM classes.
Expand Down Expand Up @@ -232,7 +232,7 @@ def print_citations(filename=None, output_format="text", verbose=False):
f"{citations._citation_err_msg}"
)
else:
if verbose:
if verbose: # pragma: no cover
warnings.warn(
"Verbose output is not available for printing to files, only to the terminal" # noqa: E501
)
Expand Down

0 comments on commit 95ddd80

Please sign in to comment.