Skip to content

Commit

Permalink
chore: test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Feb 11, 2025
1 parent 2525bfb commit 765b527
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_gitlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import os
from unittest.mock import Mock, patch

from gitlab.v4.objects import requests
import pytest

from githarbor.providers.gitlabrepository import GitLabRepository
Expand Down Expand Up @@ -51,7 +50,9 @@ def test_from_url():

def test_invalid_url():
"""Test creating repository from invalid URL."""
with pytest.raises(requests.exceptions.ConnectionError):
import gitlab.exceptions

with pytest.raises(gitlab.exceptions.GitlabParsingError):
GitLabRepository.from_url("https://invalid-url.com/owner/repo")


Expand Down

0 comments on commit 765b527

Please sign in to comment.