Skip to content

Commit

Permalink
fix tests (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrjasek authored Apr 2, 2024
1 parent f9ed781 commit 2a9bdc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/cp/output/formatter/cp_ninjs_newsroom_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def update_ninjs_subjects(self, ninjs, language="en-CA"):

except Exception as e:
logger.error(
f"An error occurred. We are in NewsRoom Ninjs Formatter Ninjs Subjects exception: {str(e)}"
f"An error occurred. We are in NewsRoom Ninjs Formatter Ninjs Subjects exception: {str(e)}"
)

def _transform_to_ninjs(self, article, subscriber, recursive=True):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ def test_update_ninjs_subjects_exception(self, mock_get_resource_service):
self.formatter.update_ninjs_subjects(ninjs, "en-CA")

self.assertIn(
"An error occurred. We are in CP NewsRoom Ninjs Formatter Ninjs Subjects exception: Test exception",
"An error occurred. We are in NewsRoom Ninjs Formatter Ninjs Subjects exception: Test exception",
cm.output[0],
)

0 comments on commit 2a9bdc1

Please sign in to comment.