def test_openai_moderation_calibration(self):
        """Check that OpenAI moderation feedback functions produce reasonable values."""

        o = openai_provider.OpenAI()

        tests = get_openai_tests(o)

        for imp, args, expected in tests:
            with self.subTest(f"{imp.__name__}-{args}"):
                actual = imp(**args)
                self.assertAlmostEqual(actual, expected, delta=0.2)
Check that OpenAI moderation feedback functions produce reasonable values.
tests/e2e/test_providers.py