Skip to content

Commit 64af33a

Browse files
committed
fix: sharpen tests
1 parent 2d48748 commit 64af33a

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

tests/jax/test_api.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -379,18 +379,22 @@ def _reg_fun(p):
379379
):
380380
continue
381381

382-
# jax-galsim Bounds classes do not store xmax, ymax
383-
if issubclass(cls, jax_galsim.Bounds) and method in [
384-
"xmax",
385-
"ymax",
382+
# jax-galsim BoundsI classes do not store xmin, ymin
383+
if issubclass(cls, jax_galsim.BoundsI) and method in [
386384
"xmin",
387385
"ymin",
388-
"isStatic",
389386
"deltax",
390387
"deltay",
391388
]:
392389
continue
393390

391+
if issubclass(cls, jax_galsim.Bounds) and method in [
392+
"xmax",
393+
"ymax",
394+
"isStatic",
395+
]:
396+
continue
397+
394398
assert method in dir(gscls), (
395399
cls.__name__ + "." + method + " not in galsim." + gscls.__name__
396400
)

0 commit comments

Comments
 (0)