Opened 15 years ago
Closed 15 years ago
#15704 closed New feature (fixed)
Make cache tests more reusable
| Reported by: | Jonas H. | Owned by: | nobody |
|---|---|---|---|
| Component: | Core (Cache system) | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
I'm using the cache framework test suite that ships with Django for my own caching backend.
This matches replaces the hard-coded backend paths (e.g. django.core.cache.backends.db) by class attributes, so using these tests for third-party backends is as easy as typing backend_name = 'your.cool.Backend'.
Attachments (1)
Change History (5)
by , 15 years ago
| Attachment: | cache-tests-backend-name.patch added |
|---|
comment:1 by , 15 years ago
comment:2 by , 15 years ago
| Type: | → New feature |
|---|
comment:3 by , 15 years ago
| Severity: | → Normal |
|---|
Note:
See TracTickets
for help on using tickets.
Sorry. Second word should obviously be "patch". Again forgot to mention that this passes the Django test suite.