Merge pull request #17 from nikdoof/carnyx

Carnyx
This commit is contained in:
Rob Haswell
2015-06-03 17:49:05 +01:00
4 changed files with 7 additions and 5 deletions

View File

@@ -50,6 +50,8 @@ Updating the SDE data
To update the SDE data in the bot, use the ```gen_reference_data.py``` with a copy of the Sqlite conversion of the SDE, this will produce three json files that need to be copied to the data directory witthin the ```dropbot``` package.
The SDE conversion is usually available here: https://www.fuzzwork.co.uk/dump/
$ python gen_reference_data.py eve.db
Importing Types...
Importing Stations...
@@ -58,4 +60,4 @@ To update the SDE data in the bot, use the ```gen_reference_data.py``` with a co
map.json
stations.json
types.json
$ cp -i map.json stations.json types.json dropbot/data/

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -26,7 +26,7 @@ class MapTestCase(TestCase):
"""Check partial matching of system names works correctly"""
self.assertEquals(len(self.map.get_systems('Jita')), 1)
self.assertEquals(len(self.map.get_systems('Ji')), 7)
self.assertEquals(len(self.map.get_systems('J')), 2760)
self.assertEquals(len(self.map.get_systems('J')), 2765)
self.assertEquals(len(self.map.get_systems('123435345345')), 0)
self.assertEquals(len(self.map.get_systems('jita')), 1)
self.assertEquals(len(self.map.get_systems('JITA')), 1)
@@ -222,4 +222,4 @@ class MapTestCase(TestCase):
ship_ranges = [5.0, 6.0, 7.0, 8.0, 9.0, 10.0]
for skill in range(0, 6):
jump_range = ship_ranges[skill]
self.assertEquals(ship_class_to_range('jumpfreighter', skill), jump_range)
self.assertEquals(ship_class_to_range('jumpfreighter', skill), jump_range)