def test_it_uses_postgres_if_postgres_arg_is_True(self, postgres_enabled):
        request = DummyRequest(db=db.Session)
        postgres_enabled.return_value = False  # The feature flag is off.
        annotation = Annotation(userid='luke')
        db.Session.add(annotation)
        db.Session.flush()

        actual = storage.fetch_annotation(
            request, annotation.id, _postgres=True)

        assert annotation == actual
RESTful controller to allow creating/editing of emergency contact
dataset/ETHPy150Open hypothesis/h/h/api/test/storage_test.py/TestFetchAnnotation.test_it_uses_postgres_if_postgres_arg_is_True--crossover with--dataset/ETHPy150Open sahana/eden/controllers/pr.py/contact_emergency