CosmoStat / autometacal

Metacalibration and shape measurement by automatic differentiation
MIT License
4 stars 1 forks source link

Adds interpolation gradient testing #43

Closed andrevitorelli closed 2 years ago

andrevitorelli commented 2 years ago

Passing this test is what we need to solve issue #26

andrevitorelli commented 2 years ago

This test now fails successfully. :-) (ie. it's failing due to the bug we're trying to solve at #26, as it should, not due to it's own problems) task_failed_successfully

EiffL commented 2 years ago

I found this cool little thing the other day:

import pytest

xfail = pytest.mark.xfail

@xfail(reason="fails because we have a bug not fixed yet")
def test_that_fails():
   ....

which can be used to mark tests that are expected to fail for some reason