def test_source_freshness_selection_exclude(self, project):
        """Tests node selection using the --select argument. It 'excludes' the
        only source in the project so it should return no results."""
        self._set_updated_at_to(project, timedelta(hours=-2))
        # exclude source directly
        results = self.run_dbt_with_vars(
            project,
            [
                "source",
                "freshness",
                "--exclude",
                "source:test_source.test_table",
                "-o",
                "target/exclude_source.json",
            ],
        )
        assert len(results) == 0
Tests node selection using the --select argument. It 'excludes' the
        only source in the project so it should return no results.
tests/functional/sources/test_source_freshness.py