def test_generate_index_with_string(self, config):
        """Test that index generation with strings as start or end gives same results as with pandas TimeStamps."""
        start, end = config
        length = 3 if (start is None or end is None) else None
        idx = generate_index(start=start, end=end, length=length)

        start_ts = pd.Timestamp(start) if start is not None else start
        end_ts = pd.Timestamp(end) if end is not None else end
        idx_expected = generate_index(start=start_ts, end=end_ts, length=length)
        assert idx.equals(idx_expected)
Test that index generation with strings as start or end gives same results as with pandas TimeStamps.
darts/tests/utils/test_utils.py