switch CLI import to TEMP_DIR location; see new Utils functs

svn: r9409
This commit is contained in:
James G Sack
2007-11-26 05:41:04 +00:00
parent 97a720945f
commit 63a3f8479b
4 changed files with 47 additions and 49 deletions

View File

@@ -51,13 +51,13 @@ class Test(unittest.TestCase):
g = re.search("INDI", content)
s.assertTrue(g, "found 'INDI' in output file")
# this verifies that files in the "import dir"
# this verifies that files in the temporary "import dir"
# get cleaned before (and after) running a CLI
# (eg cleanout stale files from prior crash-runs)
def test3_files_in_import_dir(s):
import const
idir = os.path.join(const.HOME_DIR,"import")
ddir = os.path.join(idir, "import_db.grdb")
ddir = os.path.join(const.TEMP_DIR,"import_dbdir")
os.makedirs(ddir)
bogofiles = [os.path.join(ddir,fn)
for fn in ("family.db", "lock")]
for fn in bogofiles: