improve back and frontend testing

This commit is contained in:
2026-03-29 19:58:06 -07:00
parent 29eee8a42c
commit e9215a64ff
70 changed files with 13441 additions and 134 deletions

View File

@@ -16,3 +16,15 @@ def test_fix_zero():
result_median, = node.process(field, method="median")
assert abs(np.median(result_median.data)) < 1e-10
def test_fix_zero_unknown_method():
from backend.nodes.fix_zero import FixZero
import pytest
node = FixZero()
field = make_field(data=np.array([[1.0, 2.0], [3.0, 4.0]]))
try:
node.process(field, method="invalid_method")
assert False, "Expected ValueError"
except ValueError:
pass