From 4be1fda99b983ca0ee22fe47f8ccc311c86d7cfc Mon Sep 17 00:00:00 2001 From: J08nY Date: Fri, 26 Jan 2024 18:29:04 +0100 Subject: Move CodeFormulas. --- test/ec/test_pickle.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test') diff --git a/test/ec/test_pickle.py b/test/ec/test_pickle.py index 5d448b5..36f014d 100644 --- a/test/ec/test_pickle.py +++ b/test/ec/test_pickle.py @@ -55,6 +55,19 @@ def test_formula(): assert formulas == back +def formula_target(formula): + return hasattr(formula, "coordinate_model") + + +def test_formula_loads(ctx): + sw = ShortWeierstrassModel() + coords = sw.coordinates["projective"] + formula = coords.formulas["add-2007-bl"] + with ctx.Pool(processes=1) as pool: + res = pool.apply(formula_target, args=(formula,)) + assert res + + def test_code_formula(): sw = ShortWeierstrassModel() coords = sw.coordinates["projective"] -- cgit v1.2.3-70-g09d2