Skip to content

Commit

Permalink
Disable urllib warnings during tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timobrembeck authored and claudep committed Nov 17, 2023
1 parent 46968e0 commit c372147
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions linkcheck/tests/test_linkcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from unittest.mock import patch

import requests_mock
import urllib3
from django.apps import apps
from django.conf import settings
from django.contrib.auth.models import User
Expand Down Expand Up @@ -349,6 +350,10 @@ def test_internal_check_media_utf8(self):

@override_settings(SITE_DOMAIN='example.com')
class ExternalCheckTestCase(LiveServerTestCase):

def setUp(self):
urllib3.disable_warnings()

def test_external_check_200(self):
uv = Url(url=f"{self.live_server_url}/http/200/")
uv.check_url()
Expand Down

0 comments on commit c372147

Please sign in to comment.