Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
Change-Id: Ib3a0c90bfc6ec7f8f793917b3140769e2635a8e9
  • Loading branch information
MarkDaoust committed Oct 15, 2024
1 parent 5b825e3 commit e3c62a0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_generative_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,9 @@ def test_tool_config(self, tool_config, expected_tool_config):
)
def test_system_instruction(self, instruction, expected_instr):
self.responses["generate_content"] = [simple_response("echo echo")]
model = generative_models.GenerativeModel("gemini-1.5-flash", system_instruction=instruction)
model = generative_models.GenerativeModel(
"gemini-1.5-flash", system_instruction=instruction
)

_ = model.generate_content("test")

Expand Down Expand Up @@ -1206,7 +1208,9 @@ def test_repr_for_broken_streaming_chat(self):
self.assertEqual(expected, result)

def test_repr_for_system_instruction(self):
model = generative_models.GenerativeModel("gemini-1.5-flash", system_instruction="Be excellent.")
model = generative_models.GenerativeModel(
"gemini-1.5-flash", system_instruction="Be excellent."
)
result = repr(model)
self.assertIn("system_instruction='Be excellent.'", result)

Expand Down

0 comments on commit e3c62a0

Please sign in to comment.