From 96f3a9f39afd0399ab52158a506e505355a32fb2 Mon Sep 17 00:00:00 2001
From: David Hendriks <davidhendriks93@gmail.com>
Date: Mon, 7 Dec 2020 19:59:41 +0000
Subject: [PATCH] adding extra testfiles and making sure that there are no
 imports that arent already in required_packages

---
 binarycpython/tests/test_custom_logging.py                 | 2 ++
 binarycpython/tests/test_distributions.py                  | 1 +
 .../tests/{test_function.py => test_functions.py}          | 7 +------
 binarycpython/tests/test_grid.py                           | 1 +
 binarycpython/tests/test_hpc_functions.py                  | 1 +
 binarycpython/tests/test_plot_functions.py                 | 1 +
 binarycpython/tests/test_run_system_wrapper                | 1 +
 binarycpython/tests/test_spacing_functions.py              | 1 +
 binarycpython/tests/test_useful_funcs.py                   | 1 +
 setup.py                                                   | 2 +-
 10 files changed, 11 insertions(+), 7 deletions(-)
 create mode 100644 binarycpython/tests/test_custom_logging.py
 create mode 100644 binarycpython/tests/test_distributions.py
 rename binarycpython/tests/{test_function.py => test_functions.py} (94%)
 create mode 100644 binarycpython/tests/test_grid.py
 create mode 100644 binarycpython/tests/test_hpc_functions.py
 create mode 100644 binarycpython/tests/test_plot_functions.py
 create mode 100644 binarycpython/tests/test_run_system_wrapper
 create mode 100644 binarycpython/tests/test_spacing_functions.py
 create mode 100644 binarycpython/tests/test_useful_funcs.py

diff --git a/binarycpython/tests/test_custom_logging.py b/binarycpython/tests/test_custom_logging.py
new file mode 100644
index 000000000..7554d6b56
--- /dev/null
+++ b/binarycpython/tests/test_custom_logging.py
@@ -0,0 +1,2 @@
+from binarycpython.utils.custom_logging_functions import *
+
diff --git a/binarycpython/tests/test_distributions.py b/binarycpython/tests/test_distributions.py
new file mode 100644
index 000000000..5908653a2
--- /dev/null
+++ b/binarycpython/tests/test_distributions.py
@@ -0,0 +1 @@
+from binarycpython.utils.distribution_functions import *
diff --git a/binarycpython/tests/test_function.py b/binarycpython/tests/test_functions.py
similarity index 94%
rename from binarycpython/tests/test_function.py
rename to binarycpython/tests/test_functions.py
index 26f29f0a4..387a1e15a 100644
--- a/binarycpython/tests/test_function.py
+++ b/binarycpython/tests/test_functions.py
@@ -1,13 +1,8 @@
-from binarycpython.utils.functions import (
-    get_help_super,
-    get_help_all,
-    get_help,
-)
+from binarycpython.utils.functions import *
 
 #############################
 # Script that contains unit tests for functions from the binarycpython.utils.functions file
 
-
 def test_get_help_super():
     """
     Function to test the get_help_super function
diff --git a/binarycpython/tests/test_grid.py b/binarycpython/tests/test_grid.py
new file mode 100644
index 000000000..10ab09362
--- /dev/null
+++ b/binarycpython/tests/test_grid.py
@@ -0,0 +1 @@
+from binarycpython.utils.grid import Population
diff --git a/binarycpython/tests/test_hpc_functions.py b/binarycpython/tests/test_hpc_functions.py
new file mode 100644
index 000000000..f0c4a4915
--- /dev/null
+++ b/binarycpython/tests/test_hpc_functions.py
@@ -0,0 +1 @@
+from binarycpython.utils.hpc_functions import *
diff --git a/binarycpython/tests/test_plot_functions.py b/binarycpython/tests/test_plot_functions.py
new file mode 100644
index 000000000..05887a43b
--- /dev/null
+++ b/binarycpython/tests/test_plot_functions.py
@@ -0,0 +1 @@
+from binarycpython.utils.plot_functions import *
diff --git a/binarycpython/tests/test_run_system_wrapper b/binarycpython/tests/test_run_system_wrapper
new file mode 100644
index 000000000..098968360
--- /dev/null
+++ b/binarycpython/tests/test_run_system_wrapper
@@ -0,0 +1 @@
+from binarycpython.utils.run_system_wrapper import *
diff --git a/binarycpython/tests/test_spacing_functions.py b/binarycpython/tests/test_spacing_functions.py
new file mode 100644
index 000000000..386539689
--- /dev/null
+++ b/binarycpython/tests/test_spacing_functions.py
@@ -0,0 +1 @@
+from binarycpython.utils.spacing_functions import *
diff --git a/binarycpython/tests/test_useful_funcs.py b/binarycpython/tests/test_useful_funcs.py
new file mode 100644
index 000000000..13fb1c5fc
--- /dev/null
+++ b/binarycpython/tests/test_useful_funcs.py
@@ -0,0 +1 @@
+from binarycpython.utils.useful_funcs import *
diff --git a/setup.py b/setup.py
index 4d31149f7..4564e923f 100644
--- a/setup.py
+++ b/setup.py
@@ -268,7 +268,7 @@ This is a python API for binary_c (versions {}) by David Hendriks, Rob Izzard an
         "binarycpython.tests",
         "binarycpython.tests.c_bindings",
     ],
-    install_requires=["numpy", "pytest", "h5py"],
+    install_requires=["numpy", "pytest", "h5py", "pathos", "pandas"],
     include_package_data=True,
     ext_modules=[BINARY_C_PYTHON_API_MODULE],  # binary_c must be loaded
     classifiers=[
-- 
GitLab