def test_metadata_freshness_unsupported_parse_warning(self, project):
        """Since the default test adapter (postgres) does not support metadata
        based source freshness checks, trying to use that mechanism should
        result in a parse-time warning."""
        got_warning = False

        def warning_probe(e):
            nonlocal got_warning
            if e.info.name == "FreshnessConfigProblem" and e.info.level == "warn":
                got_warning = True

        runner = dbtRunner(callbacks=[warning_probe])
        runner.invoke(["parse"])

        assert got_warning
Since the default test adapter (postgres) does not support metadata
        based source freshness checks, trying to use that mechanism should
        result in a parse-time warning.
tests/functional/sources/test_source_freshness.py