Mercurial > hg > GlobalNeighbors
annotate tests/common.py @ 14:27925261c137
fix broken tests including an aggregious case where we add ourselves as a neighbor to ourself
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 25 Jun 2017 14:29:18 -0700 |
parents | 1b94f3bf97e5 |
children |
rev | line source |
---|---|
0
5dba84370182
initial commit; half-working prototype
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
1 """ |
5dba84370182
initial commit; half-working prototype
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
2 common test functionality |
5dba84370182
initial commit; half-working prototype
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
3 """ |
5dba84370182
initial commit; half-working prototype
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
4 |
1 | 5 import os |
6 | |
7 here = os.path.dirname(os.path.abspath(__file__)) | |
8 data = os.path.join(here, 'data') | |
9 | |
10 def datafile(*path): | |
11 """return path to a test data file""" | |
12 return os.path.join(data, *path) |