def test_dynamic_team_routing(self):
        """Test that dynamic team routing works with labels"""
        sink = create_sink(teams=["$labels.team"])
        finding = create_finding(labels={"team": "backend-team"})
        teams = sink._OpsGenieSink__get_teams(finding)
        assert teams == ["backend-team"]
Test that dynamic team routing works with labels
tests/test_opsgenie_sink.py