Skip to content

Commit

Permalink
Fix configuration file pathing in genome test module.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeReclaimers committed Feb 12, 2017
1 parent 0ebbe3f commit 5bc6e77
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_genome.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import unittest

import neat
Expand All @@ -6,9 +7,14 @@

class TestCreateNew(unittest.TestCase):
def setUp(self):
# Determine path to configuration file. This path manipulation is
# here so that the script will run successfully regardless of the
# current working directory.
local_dir = os.path.dirname(__file__)
config_path = os.path.join(local_dir, 'test_configuration')
self.config = neat.Config(neat.DefaultGenome, neat.DefaultReproduction,
neat.DefaultSpeciesSet, neat.DefaultStagnation,
'test_configuration')
config_path)

def test_unconnected_no_hidden(self):
gid = 42
Expand Down

0 comments on commit 5bc6e77

Please sign in to comment.