https://github.com/thomasleveil/test-starlette-memory-leak
test suite to discover memory leaks in given versions of starlette
https://github.com/thomasleveil/test-starlette-memory-leak
Last synced: 3 months ago
JSON representation
test suite to discover memory leaks in given versions of starlette
- Host: GitHub
- URL: https://github.com/thomasleveil/test-starlette-memory-leak
- Owner: thomasleveil
- Created: 2023-12-23T01:23:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-03T07:25:54.000Z (over 1 year ago)
- Last Synced: 2025-02-01T13:21:21.000Z (5 months ago)
- Language: Python
- Size: 429 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Test suite for [Starlette discussion #1843](https://github.com/encode/starlette/discussions/1843)
This project is a test suite trying to detect a memory leak in Starlette, when using middlewares.
See https://github.com/encode/starlette/discussions/1843

## Requirements
- docker
- python 3.10+```shell
git clone https://github.com/thomasleveil/test-starlette-memory-leak.git
cd test-starlette-memory-leak
pip install -r requirements.txt
```## Usage
```shell
pytest
```and be patient
## Configuration
See the top section of [tests/test_leaks.py](tests/test_leaks.py)