Skip to content

Commit

Permalink
Fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreben committed Nov 4, 2024
1 parent b27b6ed commit c0be42e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libsys_airflow/plugins/folio/encumbrances/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def _email_body(log):

def subject(**kwargs):
library = kwargs.get("library", "")
if is_production:
if is_production():
return f"Fix Encumbrances for {library} - folio-prod"
else:
return f"Fix Encumbrances for {library} (not production)"
2 changes: 1 addition & 1 deletion tests/test_fix_encumbrances_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ def test_fix_encumbrances_email_subject():
from libsys_airflow.plugins.folio.encumbrances.email import subject

subj = subject(library="SUL2024")
assert subj == "Fix Encumbrances for SUL2024 - folio-prod"
assert subj == "Fix Encumbrances for SUL2024 (not production)"

0 comments on commit c0be42e

Please sign in to comment.