# HG changeset patch # User Jeff Hammel # Date 1498338240 25200 # Node ID 50ee13cddf58a91f7ab37b88f806a929c4cb0730 # Parent 1b94f3bf97e57257a0d9f1f7f42bfd0d6910d69b remove this test; the datafile was too large diff -r 1b94f3bf97e5 -r 50ee13cddf58 tests/test_deteremine_distances.py --- a/tests/test_deteremine_distances.py Sat Jun 24 14:02:14 2017 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -#!/usr/bin/env python - -""" -test converstion: geoids intermediary to distances -""" - -import json -import os -import unittest -from globalneighbors.determine_distances import geoids2distances - -here = os.path.dirname(os.path.abspath(__file__)) -data = os.path.join(here, 'data') - -class DetermineDistncesTest(unittest.TestCase): - - # full dataset: test with caution - full_tsv = os.path.join(data, 'cities1000.txt') - full_tsv_lines = 149092 - - # neighbors within +/- 1 degree lat or lon from each other - twodegrees = os.path.join(data, '2degrees.json') - - def test_2degrees(self): - """test cities within 2 degrees lat, lon of each other""" - - # ensure our fixtures exist - assert os.path.exists(self.full_tsv) - assert os.path.exists(self.twodegrees) - - # read neighbors file - with open(self.twodegrees) as f: - twodegrees = json.loads(f.read()) - - -if __name__ == '__main__': - unittest.main()