From a595c509a8e6a420996703ce570d2b9af9763b8c Mon Sep 17 00:00:00 2001
From: dh00601 <dh00601@surrey.ac.uk>
Date: Sat, 8 Jan 2022 22:05:26 +0000
Subject: [PATCH] working on fixing the grid evolve tests

---
 binarycpython/tests/main.py      | 3 ++-
 binarycpython/tests/test_grid.py | 9 ++-------
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/binarycpython/tests/main.py b/binarycpython/tests/main.py
index 89dad560c..e59ecd3b8 100755
--- a/binarycpython/tests/main.py
+++ b/binarycpython/tests/main.py
@@ -75,7 +75,8 @@ from binarycpython.tests.test_grid import (
     test__increment_count,
     test__dict_from_line_source_file,
     test_evolve_single,
-    test_grid_evolve
+    test_grid_evolve,
+    test_resultdict
 )
 from binarycpython.tests.test_plot_functions import (
     test_color_by_index,
diff --git a/binarycpython/tests/test_grid.py b/binarycpython/tests/test_grid.py
index efd5a2d52..1e146ec34 100644
--- a/binarycpython/tests/test_grid.py
+++ b/binarycpython/tests/test_grid.py
@@ -34,7 +34,8 @@ import numpy as np
 from binarycpython.utils.functions import (
     temp_dir,
     Capturing,
-    remove_file
+    remove_file,
+    bin_data
 )
 from binarycpython.utils.dicts import (
     merge_dicts,
@@ -45,7 +46,6 @@ from binarycpython.utils.grid import Population
 TMP_DIR = temp_dir("tests", "test_grid")
 TEST_VERBOSITY = 1
 
-
 def parse_function_test_grid_evolve_2_threads_with_custom_logging(self, output):
     """
     Simple parse function that directly appends all the output to a file
@@ -72,7 +72,6 @@ def parse_function_test_grid_evolve_2_threads_with_custom_logging(self, output):
         with open(output_filename, "a") as first_f:
             first_f.write(output + "\n")
 
-
 def parse_function_adding_results(self, output):
     """
     Example parse function
@@ -552,10 +551,6 @@ class test_evolve_single(unittest.TestCase):
         self.assertIn("TEST_CUSTOM_LOGGING_2", output_2)
 
 
-
-
-
-
 ########
 # Some tests that are not really -unit- tests
 class test_resultdict(unittest.TestCase):
-- 
GitLab