Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

8
Strategy for creating/running tests that do not use a database
Post Body

I have a flask app that uses a database. I am running my tests but many of the fixtures create data in the database and use that for the tests. Is there a good strategy for avoiding having the tests rely on data in the database?

Maybe having fixtures that create objects in the session, using them for the test and then deleting them from the session?

Any ideas?

Author
Account Strength
60%
Account Age
8 years
Verified Email
No
Verified Flair
No
Total Karma
617
Link Karma
360
Comment Karma
176
Profile updated: 1 month ago
Posts updated: 3 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
8 years ago