Something went wrong. Try again.
Make straightforward runnable Django repros in one go
Something went wrong. Try again.
Files
- Python 100%
README.md
django-repro
============
Reproduce Django issues with `django_repro`, a library to help make single file reproductions of Django bugs.
``` python
from django.db import models
import django_repro as dr
# this has to be the first thing you call
dr.configure()
class Book(dr.Model):
title = models.CharField(max_length=50)
dr.setup(
models=[Book]
)
Book.objects.create(title="Hello There")
assert Book.objects.filter(title__startswith="Hello").count() == 1
```
See `examples` for more examples (once I come up with some more)