mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
test: create default_compilation_configuration fixture
- update test code and use it where appropriate - remove duplicate tests that lacked correctness verification
This commit is contained in:
@@ -9,7 +9,7 @@ from concrete.common.values import EncryptedScalar
|
||||
from concrete.numpy.compile import compile_numpy_function_into_op_graph
|
||||
|
||||
|
||||
def test_draw_graph_with_saving():
|
||||
def test_draw_graph_with_saving(default_compilation_configuration):
|
||||
"""Tests drawing and saving a graph"""
|
||||
|
||||
def function(x):
|
||||
@@ -19,6 +19,7 @@ def test_draw_graph_with_saving():
|
||||
function,
|
||||
{"x": EncryptedScalar(Integer(7, True))},
|
||||
[(i,) for i in range(-5, 5)],
|
||||
default_compilation_configuration,
|
||||
)
|
||||
|
||||
with tempfile.TemporaryDirectory() as tmp:
|
||||
|
||||
@@ -6,7 +6,7 @@ from concrete.common.values import EncryptedScalar
|
||||
from concrete.numpy.compile import compile_numpy_function_into_op_graph
|
||||
|
||||
|
||||
def test_get_printable_graph_with_offending_nodes():
|
||||
def test_get_printable_graph_with_offending_nodes(default_compilation_configuration):
|
||||
"""Test get_printable_graph with offending nodes"""
|
||||
|
||||
def function(x):
|
||||
@@ -16,6 +16,7 @@ def test_get_printable_graph_with_offending_nodes():
|
||||
function,
|
||||
{"x": EncryptedScalar(Integer(7, True))},
|
||||
[(i,) for i in range(-5, 5)],
|
||||
default_compilation_configuration,
|
||||
)
|
||||
|
||||
highlighted_nodes = {opgraph.input_nodes[0]: "foo"}
|
||||
|
||||
Reference in New Issue
Block a user