Merge pull request #186 from prculley/imp_rename

Rename test files so that unrelated tests don't conflict with import tests
This commit is contained in:
Paul Franklin 2016-07-05 20:17:01 +00:00 committed by GitHub
commit fe27e1e1d8
59 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
Mismatch on file: test_FTM_CONC.ged Mismatch on file: imp_test_FTM_CONC.ged
Source: S0029 handle=0000000500000005 Source: S0029 handle=0000000500000005
Diff on: Source, pubinfo Diff on: Source, pubinfo
<class 'str'>73: Name: Ancestry.com Operations, Inc.; Location: Provo, UT, USA; Date:2009; <class 'str'>73: Name: Ancestry.com Operations, Inc.; Location: Provo, UT, USA; Date:2009;

View File

@ -1,4 +1,4 @@
Mismatch on file: vcard.vcf Mismatch on file: imp_vcard.vcf
Person: I0019 handle=0000001800000018 Person: I0019 handle=0000001800000018
Diff on: Person, primary_name, surname list #2, primary Diff on: Person, primary_name, surname list #2, primary
<class 'bool'>: True <class 'bool'>: True

View File

@ -244,7 +244,7 @@ else:
for _tstfile in os.listdir(TEST_DIR): for _tstfile in os.listdir(TEST_DIR):
(fname, ext) = os.path.splitext(os.path.basename(_tstfile)) (fname, ext) = os.path.splitext(os.path.basename(_tstfile))
if ext == ".gramps" or ext == ".difs" or ext == ".bak" \ if ext == ".gramps" or ext == ".difs" or ext == ".bak" \
or fname.startswith("exp_"): or not fname.startswith("imp_"):
continue continue
test_func = make_tst_function(_tstfile, fname) test_func = make_tst_function(_tstfile, fname)
clname = 'Import_{0}'.format(_tstfile) clname = 'Import_{0}'.format(_tstfile)