The behavior I was seeing was as if the tests where run without using
manage.py. My app tests at this point are very simple. I use a fixture
to load data to do the view tests but don't explictly delete anything
from the tables.
I did basically what you suggested. You can set up the environment
var
On Tue, Oct 4, 2011 at 2:28 PM, msbuck wrote:
> Below is the settings. I am fairly new to python unit testing so my
> understanding of things could be better. But right now, if I select
> Run As -> Python Unit Test will my project is selected, it runs all of
> my Django tests and clobbers my worki
Below is the settings. I am fairly new to python unit testing so my
understanding of things could be better. But right now, if I select
Run As -> Python Unit Test will my project is selected, it runs all of
my Django tests and clobbers my working db as a result. The test
runner also appears to be i
On Oct 4, 10:30 am, msbuck wrote:
> Good news! Yesterday, I was repeatedly starting the development server
> from Eclipse which is on the Run As -> menu which cascades to Run
> Server or Run Python Unit Test. I must have accidently clicked that we
> I really wanted to start my server. That comman
Good news! Yesterday, I was repeatedly starting the development server
from Eclipse which is on the Run As -> menu which cascades to Run
Server or Run Python Unit Test. I must have accidently clicked that we
I really wanted to start my server. That command runs the PyDev Test
runner and that's wha
I don't have an initial_data.* fixtures file although I do use one in
my tests. This data was not loaded. I didn't run syncdb or flush (very
certain of this). My current theory is that flush was somehow called
from my code. I just wish I could figure out how.
Thanks for the suggestion.
On Oct 4,
On 4 October 2011 15:11, msbuck wrote:
> Twice now, I have had most of my django tables cleared from my
> database including my app tables. Obviously I need to track this down.
> In addition to the two tables created by my app, the AUTH_USER,
> AUTH_USER_USER_PERMISSIONS and DJANGO_ADMIN_LOG are c
I'll look at any theory right now :-). I'm using the standard django
TestCase to write tests for my models, views, and forms. These are in
separate modules in the app test directory where I have imported them
into the __init__.py. My view tests do use a fixture to provide data
for the app's two tab
Hi,
this sounds like a bad configuration of the tests database.
Is it possible that your test are clearing your database?
Have you made some special test configuration?
--
eng. Ilian Iliev
Web Software Developer
Mobile: +359 88 66 08 400
Website: http://ilian.i-n-i.org
On Tue, Oct 4, 2011 at 5
Twice now, I have had most of my django tables cleared from my
database including my app tables. Obviously I need to track this down.
In addition to the two tables created by my app, the AUTH_USER,
AUTH_USER_USER_PERMISSIONS and DJANGO_ADMIN_LOG are cleared. The
AUTH_PERMISSION, DJANGO_CONTENT_TYPE
10 matches
Mail list logo