-3

I think by default Django will create a new and empty test database to run the test cases. Is it possible to configure Django to use an existing database instead of creating a new one?

===

EDIT: The technologies:

  • Language: Python
  • Framework: Django
  • Browser interaction: webdriver
7
  • 1
    What environment and language are you using?
    – FDM
    Commented Jul 10, 2015 at 5:15
  • @FDM : I'm using Python and Django.
    – yaobin
    Commented Jul 10, 2015 at 13:31
  • 1
    Selenium doesn't normally use a database at all - how is it using one in your test setup? Commented Jul 13, 2015 at 16:10
  • @vincebowdren: I think I confused "selenium" and Django's test framework. You are right. Selenium itself doesn't use a database. However, because I'm new to selenium and I'm using it in a Django project, I didn't realize that I was actually talking about Django's test database.
    – yaobin
    Commented Jul 31, 2015 at 18:52
  • 2
    I'm voting to close this question as off-topic because it is about configuring software rather than about SQA.
    – Kate Paulk
    Commented Dec 9, 2015 at 15:05

1 Answer 1

0

Here is how to set databases in django in general:

This is about writing and using tests in django while this link is about using unit tests in django and configure database settings for it.

It's all from the django manual. I can't evaluate if it helps as I'm not into django.

Not the answer you're looking for? Browse other questions tagged or ask your own question.