Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ietf/api/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import datetime
import json
import html
import mock
from unittest import mock
import os
import sys

Expand Down
2 changes: 1 addition & 1 deletion ietf/community/tests.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright The IETF Trust 2016-2023, All Rights Reserved
# -*- coding: utf-8 -*-

import mock
from unittest import mock
from pyquery import PyQuery

from django.test.utils import override_settings
Expand Down
2 changes: 1 addition & 1 deletion ietf/doc/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from django.http import HttpRequest
import lxml
import bibtexparser
import mock
from unittest import mock
import json
import copy
import random
Expand Down
2 changes: 1 addition & 1 deletion ietf/doc/tests_ballot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


import datetime
import mock
from unittest import mock

from pyquery import PyQuery

Expand Down
2 changes: 1 addition & 1 deletion ietf/doc/tests_draft.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import os
import datetime
import io
import mock
from unittest import mock

from collections import Counter
from pathlib import Path
Expand Down
2 changes: 1 addition & 1 deletion ietf/doc/tests_material.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import shutil
import io

from mock import call, patch
from unittest.mock import call, patch
from pathlib import Path
from pyquery import PyQuery

Expand Down
2 changes: 1 addition & 1 deletion ietf/doc/tests_review.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import os
import shutil

from mock import patch, Mock
from unittest.mock import patch, Mock
from requests import Response

from django.apps import apps
Expand Down
2 changes: 1 addition & 1 deletion ietf/doc/tests_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import debug # pyflakes:ignore
import datetime
import mock
from unittest import mock

from pathlib import Path

Expand Down
2 changes: 1 addition & 1 deletion ietf/group/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import datetime
import json
import mock
from unittest import mock

from django.urls import reverse as urlreverse
from django.db.models import Q
Expand Down
2 changes: 1 addition & 1 deletion ietf/group/tests_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import datetime
import io
import bleach
import mock
from unittest import mock

from unittest.mock import call, patch
from pathlib import Path
Expand Down
2 changes: 1 addition & 1 deletion ietf/idindex/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


import datetime
import mock
from unittest import mock

from pathlib import Path
from tempfile import TemporaryDirectory
Expand Down
2 changes: 1 addition & 1 deletion ietf/ipr/management/tests.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright The IETF Trust 2021, All Rights Reserved
# -*- coding: utf-8 -*-
"""Tests of ipr management commands"""
import mock
from unittest import mock
import sys

from django.core.management import call_command
Expand Down
2 changes: 1 addition & 1 deletion ietf/ipr/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


import datetime
import mock
from unittest import mock
import re

from pyquery import PyQuery
Expand Down
2 changes: 1 addition & 1 deletion ietf/meeting/tests_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""Tests of models in the Meeting application"""
import datetime

from mock import patch
from unittest.mock import patch

from django.conf import settings
from django.test import override_settings
Expand Down
2 changes: 1 addition & 1 deletion ietf/meeting/tests_tasks.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright The IETF Trust 2025, All Rights Reserved

import datetime
from mock import patch, call
from unittest.mock import patch, call
from ietf.utils.test_utils import TestCase
from ietf.utils.timezone import date_today
from .factories import MeetingFactory
Expand Down
2 changes: 1 addition & 1 deletion ietf/meeting/tests_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import json
import jsonschema
from json import JSONDecodeError
from mock import patch, Mock
from unittest.mock import patch, Mock

from django.http import HttpResponse, JsonResponse
from ietf.meeting.factories import MeetingFactory, RegistrationFactory, RegistrationTicketFactory
Expand Down
2 changes: 1 addition & 1 deletion ietf/meeting/tests_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import requests_mock

from unittest import skipIf
from mock import call, patch, PropertyMock
from unittest.mock import call, patch, PropertyMock
from pyquery import PyQuery
from lxml.etree import tostring
from io import StringIO, BytesIO
Expand Down
2 changes: 1 addition & 1 deletion ietf/message/tests.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright The IETF Trust 2013-2020, All Rights Reserved
# -*- coding: utf-8 -*-
import datetime
import mock
from unittest import mock

from smtplib import SMTPException

Expand Down
2 changes: 1 addition & 1 deletion ietf/nomcom/management/tests.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright The IETF Trust 2021, All Rights Reserved
# -*- coding: utf-8 -*-
"""Tests of nomcom management commands"""
import mock
from unittest import mock
import sys

from collections import namedtuple
Expand Down
2 changes: 1 addition & 1 deletion ietf/nomcom/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import datetime
import io
import mock
from unittest import mock
import random
import shutil

Expand Down
2 changes: 1 addition & 1 deletion ietf/person/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import datetime
import json
import mock
from unittest import mock

from io import StringIO, BytesIO
from PIL import Image
Expand Down
2 changes: 1 addition & 1 deletion ietf/review/tests.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*-
import datetime
import mock
from unittest import mock
import debug # pyflakes:ignore

from pyquery import PyQuery
Expand Down
2 changes: 1 addition & 1 deletion ietf/submit/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import datetime
import email
import io
import mock
from unittest import mock
import os
import re
import sys
Expand Down
2 changes: 1 addition & 1 deletion ietf/sync/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import io
import json
import datetime
import mock
from unittest import mock
import quopri
import requests

Expand Down
2 changes: 1 addition & 1 deletion ietf/utils/management/tests.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright The IETF Trust 2013-2020, All Rights Reserved
# -*- coding: utf-8 -*-

import mock
from unittest import mock

from django.core.management import call_command, CommandError
from django.test import override_settings
Expand Down
2 changes: 1 addition & 1 deletion ietf/utils/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import shutil
import types

from mock import call, patch
from unittest.mock import call, patch
from pyquery import PyQuery
from typing import Dict, List # pyflakes:ignore

Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ logging_tree>=1.9 # Used only by the showloggers management command
lxml>=5.3.0
markdown>=3.3.6
types-markdown>=3.3.6
mock>=4.0.3 # Used only by tests, of course
types-mock>=4.0.3
mypy~=1.7.0 # Version requirements determined by django-stubs.
oic>=1.3 # Used only by tests
Pillow>=9.1.0
Expand Down
Loading