- Use unittest.mock instead external mock
This commit is contained in:
parent
eb35d7baac
commit
b61e59d676
@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
import unittest
|
||||
|
||||
from pungi.arch import (
|
||||
|
@ -1,4 +1,4 @@
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
try:
|
||||
import unittest2 as unittest
|
||||
|
@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
try:
|
||||
import unittest2 as unittest
|
||||
|
@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import logging
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
try:
|
||||
import unittest2 as unittest
|
||||
|
@ -7,7 +7,7 @@ except ImportError:
|
||||
import unittest
|
||||
|
||||
import six
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
from pungi import checks
|
||||
from tests.helpers import load_config, PKGSET_REPOS
|
||||
|
@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
import os
|
||||
import six
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
|
||||
import logging
|
||||
import mock
|
||||
from unittest import mock
|
||||
import six
|
||||
|
||||
import os
|
||||
|
@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
import os
|
||||
from six.moves import StringIO
|
||||
|
@ -8,7 +8,7 @@ except ImportError:
|
||||
import glob
|
||||
import os
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
import six
|
||||
|
||||
from pungi.module_util import Modulemd
|
||||
|
@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
import os
|
||||
|
||||
from productmd.extra_files import ExtraFiles
|
||||
|
@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
from pungi.phases.gather.methods import method_deps as deps
|
||||
from tests import helpers
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
from collections import namedtuple
|
||||
import copy
|
||||
import mock
|
||||
from unittest import mock
|
||||
import os
|
||||
|
||||
import six
|
||||
|
@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
import os
|
||||
|
||||
import six
|
||||
|
@ -4,7 +4,7 @@ import copy
|
||||
import json
|
||||
import os
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
try:
|
||||
import unittest2 as unittest
|
||||
|
@ -5,7 +5,7 @@ try:
|
||||
except ImportError:
|
||||
import unittest
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
import six
|
||||
|
||||
from pungi.phases.gather.sources.source_module import GatherSourceModule
|
||||
|
@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
import os
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
import six
|
||||
|
||||
|
@ -4,7 +4,7 @@ try:
|
||||
import unittest2 as unittest
|
||||
except ImportError:
|
||||
import unittest
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
import os
|
||||
import tempfile
|
||||
|
@ -5,7 +5,7 @@ try:
|
||||
import unittest2 as unittest
|
||||
except ImportError:
|
||||
import unittest
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
import six
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import itertools
|
||||
import mock
|
||||
from unittest import mock
|
||||
import os
|
||||
import six
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import json
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
try:
|
||||
import unittest2 as unittest
|
||||
|
@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
import errno
|
||||
import os
|
||||
import stat
|
||||
|
@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
import six
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
import os
|
||||
|
||||
|
@ -4,7 +4,7 @@ try:
|
||||
import unittest2 as unittest
|
||||
except ImportError:
|
||||
import unittest
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
from pungi import media_split
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import mock
|
||||
from unittest import mock
|
||||
import os
|
||||
|
||||
import six
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
from datetime import datetime
|
||||
import json
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
try:
|
||||
import unittest2 as unittest
|
||||
|
@ -9,7 +9,7 @@ import shutil
|
||||
import subprocess
|
||||
from textwrap import dedent
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
import six
|
||||
from six.moves import configparser
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
import json
|
||||
|
||||
import copy
|
||||
|
@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
import os
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
import os
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
|
||||
import json
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
import os
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
import json
|
||||
import os
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
import six
|
||||
import yaml
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
import os
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
import os
|
||||
|
||||
try:
|
||||
|
@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
try:
|
||||
import unittest2 as unittest
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
import os
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
import six
|
||||
|
||||
from pungi.module_util import Modulemd
|
||||
|
@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import ddt
|
||||
import mock
|
||||
from unittest import mock
|
||||
import os
|
||||
import six
|
||||
|
||||
|
@ -6,7 +6,7 @@ try:
|
||||
except ImportError:
|
||||
import unittest
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
import six
|
||||
|
||||
import pungi.phases.repoclosure as repoclosure_phase
|
||||
|
@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
import os
|
||||
|
||||
from pungi.runroot import Runroot
|
||||
|
@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
try:
|
||||
import unittest2 as unittest
|
||||
|
@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
import os
|
||||
|
||||
import pungi.phases.test as test_phase
|
||||
|
@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import mock
|
||||
from unittest import mock
|
||||
import os
|
||||
import shutil
|
||||
import six
|
||||
|
@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import argparse
|
||||
import mock
|
||||
from unittest import mock
|
||||
import os
|
||||
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user