Skip to content
Snippets Groups Projects
Commit 8a191e96 authored by David Hendriks's avatar David Hendriks
Browse files

changed some tests

parent fda58dbe
No related branches found
No related tags found
No related merge requests found
Pipeline #31939 passed
...@@ -129,7 +129,7 @@ class test_custom_logging(unittest.TestCase): ...@@ -129,7 +129,7 @@ class test_custom_logging(unittest.TestCase):
input_2 = "version" input_2 = "version"
output_2 = from_binary_c_config(BINARY_C_CONFIG, input_2) output_2 = from_binary_c_config(BINARY_C_CONFIG, input_2)
self.assertEqual(output_2, "2.1.7", msg="binary_c version doesnt match") self.assertIn(output_2, ["2.1.7", "2.2pre1"], msg="binary_c version doesnt match")
def test_return_compilation_dict(self): def test_return_compilation_dict(self):
with Capturing() as output: with Capturing() as output:
......
...@@ -25,7 +25,7 @@ class test_spacing_functions(unittest.TestCase): ...@@ -25,7 +25,7 @@ class test_spacing_functions(unittest.TestCase):
const_return = const(1, 10, 10) const_return = const(1, 10, 10)
self.assertTrue( self.assertTrue(
(const_return == np.linspace(1, 10, 10)).all(), (const_return == np.linspace(1, 10, 10+1)).all(),
msg="Output didn't contain SINGLE_STAR_LIFETIME", msg="Output didn't contain SINGLE_STAR_LIFETIME",
) )
......
...@@ -786,8 +786,8 @@ def write_grid_options_to_rst_file(output_file: str) -> None: ...@@ -786,8 +786,8 @@ def write_grid_options_to_rst_file(output_file: str) -> None:
# Moe & di Stefano options: # Moe & di Stefano options:
print_option_descriptions( print_option_descriptions(
f, f,
moe_distefano_default_options, moe_di_stefano_default_options,
moe_distefano_default_options_description, moe_di_stefano_default_options_description,
"Moe & di Stefano sampler options", "Moe & di Stefano sampler options",
"The following options are meant to be changed by the user.", "The following options are meant to be changed by the user.",
) )
......
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