Skip to content

Commit

Permalink
Set default value for line_break to make the test pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamanehSaadat committed Apr 8, 2024
1 parent a676d0a commit da6cfd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keras_nlp/models/task_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ def test_summary_with_preprocessor(self):
preprocessor = SimplePreprocessor()
model = SimpleTask(preprocessor)
summary = []
model.summary(print_fn=lambda x, line_break: summary.append(x))
model.summary(print_fn=lambda x, line_break=False: summary.append(x))
self.assertRegex("\n".join(summary), "Preprocessor:")

def test_summary_without_preprocessor(self):
model = SimpleTask()
summary = []
model.summary(print_fn=lambda x, line_break: summary.append(x))
model.summary(print_fn=lambda x, line_break=False: summary.append(x))
self.assertNotRegex("\n".join(summary), "Preprocessor:")

0 comments on commit da6cfd1

Please sign in to comment.