Re: LiveServerTestCase modifies production database when ran in python script

2014-06-18 Thread yakkadesign
The solution was to use DjangoTestSuiteRunner. I ended up copying the method DjangoTestSuiteRunner.run_tests and modifying to use a test suite. The code is from django.test.simple import DjangoTestSuiteRunnerfrom django.utils import unittest suite_payment = unittest.TestLoader().loadTestsF

LiveServerTestCase modifies production database when ran in python script

2014-06-11 Thread yakkadesign
ning the script with an IDE. This is a similar problem: http://stackoverflow.com/questions/17435155/django-functional-liveservertestcase-after-submitting-form-with-selenium-obje but it doesn't apply since I'm using self.live_server_url instead of hard coding a url. I posted this to SO wi