def test_default_team_fallback(self):
        """Test that default team is used when template fails to resolve"""
        sink = create_sink(teams=["$labels.team"], default_team="fallback-team")
        finding = create_finding()
        teams = sink._OpsGenieSink__get_teams(finding)
        assert teams == ["fallback-team"]
Test that default team is used when template fails to resolve
tests/test_opsgenie_sink.py