MCPcopy Create free account
hub / github.com/dds-bridge/dds / test_import_and_api_root

Method test_import_and_api_root

python/tests/test_import.py:16–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

14
15class TestImport(unittest.TestCase):
16 def test_import_and_api_root(self) -> None:
17 self.assertEqual(api_root(), "dds.hpp")
18 self.assertEqual(module_name(), "_dds3")
19 self.assertTrue(callable(solve_board))
20 self.assertTrue(callable(solve_board_pbn))
21 self.assertTrue(callable(calc_dd_table))
22 self.assertTrue(callable(calc_all_tables_pbn))
23 self.assertTrue(callable(par))
24 self.assertTrue(callable(calc_par))
25 self.assertTrue(callable(calc_par_from_table))
26 self.assertIsNotNone(SolverContext)
27
28 # Verify SolverContext can be instantiated.
29 ctx = SolverContext()
30 self.assertIsNotNone(ctx)
31
32
33if __name__ == "__main__":

Callers

nothing calls this directly

Calls 1

SolverContextClass · 0.85

Tested by

no test coverage detected