Skip to content
Snippets Groups Projects
Commit 44070db2 authored by dh00601's avatar dh00601
Browse files

working on the tests now. slowly adding them all again

parent f2fe4f94
No related branches found
No related tags found
No related merge requests found
# /usr/bin/env python
"""
Main file for the tests. This file imports all the combined_test functions from all files.
TODO: fix the imports without the wildcard
"""
import unittest
from binarycpython.tests.test_c_bindings import *
from binarycpython.tests.test_custom_logging import *
from binarycpython.tests.test_distributions import *
from binarycpython.tests.test_functions import *
from binarycpython.tests.test_grid import *
from binarycpython.tests.test_hpc_functions import *
from binarycpython.tests.test_plot_functions import *
from binarycpython.tests.test_run_system_wrapper import *
from binarycpython.tests.test_spacing_functions import *
from binarycpython.tests.test_useful_funcs import *
from binarycpython.tests.test_grid_options_defaults import *
from binarycpython.tests.test_stellar_types import *
from binarycpython.tests.test_c_bindings import (
test_run_system,
test_return_store_memaddr,
TestEnsemble,
)
# from binarycpython.tests.test_custom_logging import *
# from binarycpython.tests.test_distributions import *
# from binarycpython.tests.test_functions import *
# from binarycpython.tests.test_grid import *
# from binarycpython.tests.test_hpc_functions import *
# from binarycpython.tests.test_plot_functions import *
# from binarycpython.tests.test_run_system_wrapper import *
# from binarycpython.tests.test_spacing_functions import *
# from binarycpython.tests.test_useful_funcs import *
# from binarycpython.tests.test_grid_options_defaults import *
# from binarycpython.tests.test_stellar_types import *
if __name__ == "__main__":
unittest.main()
......@@ -119,8 +119,6 @@ class test_run_system(unittest.TestCase):
### memaddr test
#######################################################################################################################################################
# TODO: Make some assertion tests in c
class test_return_store_memaddr(unittest.TestCase):
"""
......@@ -180,9 +178,6 @@ class TestEnsemble(unittest.TestCase):
output = _binary_c_bindings.return_persistent_data_memaddr()
self.assertTrue(is_capsule(output), msg="Object must be a capsule")
# self.assertNotEqual(
# output, 0, "memory adress seems not to have a correct value"
# )
def test_minimal_ensemble_output(self):
with Capturing() as output:
......
......@@ -18,15 +18,6 @@ from binarycpython.utils.useful_funcs import (
calc_period_from_sep,
)
# class test_(unittest.TestCase):
# """
# Unittests for function
# """
# def test_1(self):
# pass
class test_calc_period_from_sep(unittest.TestCase):
"""
Unittests for function calc_period_from_sep
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment