mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 20:25:34 -05:00
chore: remove pygraphviz
This commit is contained in:
@@ -39,16 +39,9 @@ def test_artifacts_export(helpers):
|
||||
assert (tmpdir / "parameters.txt").exists()
|
||||
|
||||
assert (tmpdir / "1.initial.graph.txt").exists()
|
||||
assert (tmpdir / "1.initial.graph.png").exists()
|
||||
|
||||
assert (tmpdir / "2.after-fusing.graph.txt").exists()
|
||||
assert (tmpdir / "2.after-fusing.graph.png").exists()
|
||||
|
||||
assert (tmpdir / "3.after-fusing.graph.txt").exists()
|
||||
assert (tmpdir / "3.after-fusing.graph.png").exists()
|
||||
|
||||
assert (tmpdir / "4.final.graph.txt").exists()
|
||||
assert (tmpdir / "4.final.graph.png").exists()
|
||||
|
||||
assert (tmpdir / "bounds.txt").exists()
|
||||
assert (tmpdir / "mlir.txt").exists()
|
||||
@@ -63,16 +56,9 @@ def test_artifacts_export(helpers):
|
||||
assert (tmpdir / "parameters.txt").exists()
|
||||
|
||||
assert (tmpdir / "1.initial.graph.txt").exists()
|
||||
assert (tmpdir / "1.initial.graph.png").exists()
|
||||
|
||||
assert (tmpdir / "2.after-fusing.graph.txt").exists()
|
||||
assert (tmpdir / "2.after-fusing.graph.png").exists()
|
||||
|
||||
assert (tmpdir / "3.after-fusing.graph.txt").exists()
|
||||
assert (tmpdir / "3.after-fusing.graph.png").exists()
|
||||
|
||||
assert (tmpdir / "4.final.graph.txt").exists()
|
||||
assert (tmpdir / "4.final.graph.png").exists()
|
||||
|
||||
assert (tmpdir / "bounds.txt").exists()
|
||||
assert (tmpdir / "mlir.txt").exists()
|
||||
|
||||
@@ -38,29 +38,6 @@ return %2
|
||||
)
|
||||
|
||||
|
||||
def test_circuit_draw(helpers):
|
||||
"""
|
||||
Test `draw` method of `Circuit` class.
|
||||
"""
|
||||
|
||||
configuration = helpers.configuration()
|
||||
|
||||
@compiler({"x": "encrypted", "y": "encrypted"})
|
||||
def f(x, y):
|
||||
return x + y
|
||||
|
||||
inputset = [(np.random.randint(0, 2**4), np.random.randint(0, 2**5)) for _ in range(100)]
|
||||
circuit = f.compile(inputset, configuration)
|
||||
|
||||
with tempfile.TemporaryDirectory() as path:
|
||||
tmpdir = Path(path)
|
||||
|
||||
png = tmpdir / "drawing.png"
|
||||
circuit.draw(save_to=png)
|
||||
|
||||
assert png.exists()
|
||||
|
||||
|
||||
def test_circuit_bad_run(helpers):
|
||||
"""
|
||||
Test `run` method of `Circuit` class with bad parameters.
|
||||
|
||||
Reference in New Issue
Block a user