diff options
| author | J08nY | 2024-07-24 14:04:20 +0200 |
|---|---|---|
| committer | J08nY | 2024-07-24 14:04:20 +0200 |
| commit | a706f612a7bf0930af9a2a8af195cc0ec75970a2 (patch) | |
| tree | 141a0038090d0f2ca21183dd35063a1547c95b89 /test/ec/test_formula.py | |
| parent | 78731654f97576e2907d922501185e25d58e495f (diff) | |
| download | pyecsca-a706f612a7bf0930af9a2a8af195cc0ec75970a2.tar.gz pyecsca-a706f612a7bf0930af9a2a8af195cc0ec75970a2.tar.zst pyecsca-a706f612a7bf0930af9a2a8af195cc0ec75970a2.zip | |
Move library formulas from test to main package.
Diffstat (limited to 'test/ec/test_formula.py')
| -rw-r--r-- | test/ec/test_formula.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ec/test_formula.py b/test/ec/test_formula.py index 4f64d36..e5fce6e 100644 --- a/test/ec/test_formula.py +++ b/test/ec/test_formula.py @@ -5,7 +5,7 @@ from typing import Tuple import pytest from sympy import FF, symbols from importlib_resources import files, as_file -import test.data.formulas +import pyecsca.ec from pyecsca.ec.formula.expand import expand_formula_set from pyecsca.ec.formula.fliparoo import generate_fliparood_formulas from pyecsca.ec.formula.graph import rename_ivs @@ -418,8 +418,8 @@ def library_formula_params(request) -> Tuple[CodeFormula, DomainParameters]: name, model, coords_name, param_spec, formula_type = request.param model = model() coordinate_model = model.coordinates[coords_name] - with as_file(files(test.data.formulas).joinpath(name)) as meta_path, as_file( - files(test.data.formulas).joinpath(name + ".op3") + with as_file(files(pyecsca.ec).joinpath("data", "formulas", name)) as meta_path, as_file( + files(pyecsca.ec).joinpath("data", "formulas", name + ".op3") ) as op3_path: formula = formula_type(meta_path, op3_path, name, coordinate_model).to_code() params = get_params(*param_spec, coords_name) |
