MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / should_be_called

Method should_be_called

src/bonsai/test/core/bootstrap.py:360–364  ·  view source on GitHub ↗

Predict the last added call.

(self, number: Optional[int] = None)

Source from the content-addressed store, hash-verified

358 return decorate
359
360 def should_be_called(self, number: Optional[int] = None) -> Self:
361 """Predict the last added call."""
362 self.should_call = self.calls.pop()
363 self.predictions.append({"type": "SHOULD_BE_CALLED", "number": number, "call": self.should_call})
364 return self
365
366 def will_return(self, value: Any) -> Self:
367 """Remember a return value for the last predicted call."""

Calls 2

popMethod · 0.80
appendMethod · 0.45