---
title: "close_project"
description: "close_project — forget the open project."
url: "https://docs.justcat.it/reference/python-module/close-project/"
---
# close_project

## Signature

```python
cat.close_project() -> None
```

## Parameters

None.

## What it does

Detaches the open project from the session so that the project functions (`get_tests`, `invoke_tests`, …) refuse until another `open_project`. It does not end the session, does not sign out, and keeps the last run's summary — `get_test_results_summary()` still works afterwards. It is never required: `open_project` replaces the open project by itself, and ending the process releases everything.

## Returns

`None`.

## Raises

The sign-in and plan check (first call of the process) raises the `CatPortalError` family listed on the [Introduction](https://docs.justcat.it/reference/python-module/introduction/ "Introduction") page. With no open project: in the current version a bare `TypeError: exceptions must derive from BaseException` (not a readable message) — call `open_project` first.

## Examples

```python
cat.open_project("D:/Testing/DwhTests.cat.yaml")
summary = cat.invoke_tests()
cat.close_project()
```

## Related

- [Introduction](https://docs.justcat.it/reference/python-module/introduction/ "Introduction") — session model, logging, .NET objects, exceptions, sign-in.
- [`open_project`](https://docs.justcat.it/reference/python-module/open-project/ "open_project") — the counterpart.

