def test_duplicate_teams(self):
        """Test that duplicate team names are handled correctly"""
        sink = create_sink(teams=["$labels.team", "$labels.team"])
        finding = create_finding(labels={"team": "backend-team"})
        teams = sink._OpsGenieSink__get_teams(finding)
        assert teams == ["backend-team"]  # Duplicates should be removed
Test that duplicate team names are handled correctly
tests/test_opsgenie_sink.py