def test_it_uses_elastic_if_postgres_arg_is_False(self,
                                                      postgres_enabled,
                                                      models):
        postgres_enabled.return_value = True  # The feature flag is on.
        models.elastic.Annotation.fetch.return_value = mock.Mock()

        actual = storage.fetch_annotation(
            DummyRequest(), '123', _postgres=False)

        models.elastic.Annotation.fetch.assert_called_once_with('123')
        assert models.elastic.Annotation.fetch.return_value == actual
If postgres=False it uses elastic even if the feature flag is on.
dataset/ETHPy150Open hypothesis/h/h/api/test/storage_test.py/TestFetchAnnotation.test_it_uses_elastic_if_postgres_arg_is_False