def test_source_freshness_selection_select(self, project, logs_dir):
        """Tests node selection using the --select argument."""
        """Also validate that specify a target-path works as expected."""
        self._set_updated_at_to(project, timedelta(hours=-2))
        # select source directly
        results = self.run_dbt_with_vars(
            project,
            [
                "source",
                "freshness",
                "--select",
                "source:test_source.test_table",
            ],
        )
        assert len(results) == 1
        assert results[0].status == "pass"
        self._assert_freshness_results(f"{logs_dir}/sources.json", "pass")
Tests node selection using the --select argument.
tests/functional/sources/test_source_freshness.py