Permalink
Browse files

missing includes, variable referenced before declaration

Signed-off-by: Eric Holscher <eric@ericholscher.com>
  • Loading branch information...
1 parent 714211d commit 4dfe84d7f9f965f18c8c0ad3f00dbbc9381983cd Zellyn Hunter committed with Jun 9, 2009
Showing with 5 additions and 2 deletions.
  1. +5 −2 test_utils/testmaker/__init__.py
@@ -1,7 +1,10 @@
import logging
+import os
+from os import path
from django.core import serializers
from test_utils.management.commands.relational_dumpdata import _relational_dumpdata
from django.template import Context, Template
+from django.conf import settings
TESTMAKER_TEMPLATE = """
from django.test import TestCase
@@ -59,9 +62,9 @@ def setup_testmaker(app, verbosity=1, create_fixtures=False, format='xml', addrp
new_tests = True
#Figure out where to store data
+ fixtures_dir = path.join(base_dir, 'fixtures')
+ fixture_file = path.join(fixtures_dir, '%s_testmaker.%s' % (app_name, format))
if create_fixtures:
- fixtures_dir = path.join(base_dir, 'fixtures')
- fixture_file = path.join(fixtures_dir, '%s_testmaker.%s' % (app_name, format))
if not path.exists(fixtures_dir):
os.mkdir(fixtures_dir)

0 comments on commit 4dfe84d

Please sign in to comment.