How to run test database in Django?

How do people test applications written for AWS?

  • - For example: Often people write test against database, using in-memory tests, how does one test their applications when the endpoint is Amazon RDS or Amazon S3? - Are there ways to run tests against mocks where endpoints are Amazon RDS or Amazon S3. - I am actually interested in learning how to people perform tests against database where database is in the cloud

  • Answer:

    There's only one option to really test that: spin up a non-critical setup and test on AWS. I would call that "staging". Actual testing can be done on an on premise server, an other (AWS) cloud server or locally. When you write OOP code you can easily mock S3 with a local file system and some fake latency. For rds, elastic cache and others you could use mysql, men cached etc.

Robin Verlangen at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.