Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
binary_c-python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Izzard, Robert Dr (Maths & Physics)
binary_c-python
Commits
44070db2
Commit
44070db2
authored
3 years ago
by
dh00601
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
binarycpython/tests/main.py
+18
-12
18 additions, 12 deletions
binarycpython/tests/main.py
binarycpython/tests/test_c_bindings.py
+0
-5
0 additions, 5 deletions
binarycpython/tests/test_c_bindings.py
binarycpython/tests/test_useful_funcs.py
+0
-9
0 additions, 9 deletions
binarycpython/tests/test_useful_funcs.py
with
18 additions
and
26 deletions
binarycpython/tests/main.py
+
18
−
12
View file @
44070db2
# /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
()
This diff is collapsed.
Click to expand it.
binarycpython/tests/test_c_bindings.py
+
0
−
5
View file @
44070db2
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
binarycpython/tests/test_useful_funcs.py
+
0
−
9
View file @
44070db2
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment