1
0
mirror of synced 2026-01-17 21:02:47 -05:00
Files
airbyte/airbyte-integrations/connectors/source-gitlab/unit_tests/test_utils.py
Anton Karpets 5f2c3d88ca 🚨🚨🎉Source GitLab: migrate to low-code (#35989)
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
Co-authored-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
2024-04-01 19:53:51 +03:00

18 lines
478 B
Python

# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
import pytest
from source_gitlab.utils import parse_url
@pytest.mark.parametrize(
"url, expected",
(
("http://example.com", (True, "http", "example.com")),
("http://example", (True, "http", "example")),
("test://example.com", (False, "", "")),
("https://example.com/test/test2", (False, "", "")),
)
)
def test_parse_url(url, expected):
assert parse_url(url) == expected