ManifoldMarketManager.test.test_util

ManifoldMarketManager.test.test_util.test_explain_abstract() None[source]

Make sure that explain_abstract() calls to each of its fed Rules.

ManifoldMarketManager.test.test_util.test_fib(limit: int = 100) None[source]

Ensure the fib generator works, out to some number of terms.

ManifoldMarketManager.test.test_util.test_market_to_answer_map(mkt: Market, data_regression: DataRegressionFixture, benchmark: BenchmarkFixture) None[source]

Test the behavior of the market to answer map utility function.

ManifoldMarketManager.test.test_util.test_pool_to_num_cpmm1(cpmm1_mkt: Market, data_regression: DataRegressionFixture, benchmark: BenchmarkFixture) None[source]

Test the behavior of the market to answer map utility function.

ManifoldMarketManager.test.test_util.test_pool_to_prob_cpmm1(mkt: Market, data_regression: DataRegressionFixture, benchmark: BenchmarkFixture) None[source]

Test the behavior of the market to answer map utility function.

ManifoldMarketManager.test.test_util.test_prob_to_num_cpmm1(cpmm1_mkt: Market, data_regression: DataRegressionFixture, benchmark: BenchmarkFixture) None[source]

Test the behavior of the market to answer map utility function.

ManifoldMarketManager.test.test_util.test_require_env() None[source]

Make sure that we are actually requiring environment variables when specified.