# forge.testing.assert_exit_at

```python
forge.testing.assert_exit_at(run: TestRun, bar: int, *, side: str | None = None, reason: str | None = None) -> None
```

An exit was filled on primary bar ``bar``, closing a position of ``side`` and for ``reason``.

``reason`` is the fill's reason in the run's ``exits`` table, such as ``"stop"`` or
``"target"``.

Since Forge API 1.
