File tree Expand file tree Collapse file tree 3 files changed +17
-22
lines changed Expand file tree Collapse file tree 3 files changed +17
-22
lines changed Original file line number Diff line number Diff line change 10
10
11
11
from __future__ import with_statement
12
12
13
- import sys
13
+ import inspect
14
+ import logging
14
15
import os
15
16
import shutil
16
- import logging
17
17
import tempfile
18
- import mock
19
- import inspect
18
+ from unittest import mock
20
19
21
- from tank_test .tank_test_base import *
22
20
import tank
23
21
from tank .errors import TankError , TankHookMethodDoesNotExistError
24
- from tank .platform import application , constants , validation
22
+ from tank .platform import application , validation
25
23
from tank .template import Template
26
- from tank . deploy import descriptor
24
+ from tank_test . tank_test_base import *
27
25
from tank_vendor import six
28
26
from tank_vendor .six import StringIO
29
27
Original file line number Diff line number Diff line change 12
12
Engine-related unit tests.
13
13
"""
14
14
15
- from __future__ import with_statement , print_function
15
+ from __future__ import print_function , with_statement
16
16
17
+ import contextlib
17
18
import os
19
+ import random
18
20
import sys
19
21
import threading
20
- import random
21
22
import time
23
+ from unittest import mock
22
24
25
+ import sgtk
26
+ import tank
27
+ from sgtk .platform import engine
28
+ from tank .errors import TankError
29
+ from tank_test .tank_test_base import setUpModule # noqa
23
30
from tank_test .tank_test_base import (
24
31
TankTestBase ,
25
32
skip_if_pyside_missing ,
26
33
suppress_generated_code_qt_warnings ,
27
34
)
28
- from tank_test .tank_test_base import setUpModule # noqa
29
-
30
- import contextlib
31
- import tank
32
- import sgtk
33
- from sgtk .platform import engine
34
- from tank .errors import TankError
35
- import mock
36
35
37
36
38
37
class TestEngineBase (TankTestBase ):
Original file line number Diff line number Diff line change 16
16
17
17
import functools
18
18
import sys
19
+ from unittest import mock
19
20
20
- import mock
21
-
22
- from sgtk .descriptor import Descriptor
21
+ from sgtk .descriptor import Descriptor , create_descriptor
23
22
from sgtk .descriptor .io_descriptor .base import IODescriptorBase
24
- from sgtk .descriptor import create_descriptor
25
23
from sgtk .util import sgre as re
26
-
27
24
from tank import TankError
28
25
from tank .platform .environment import InstalledEnvironment
29
26
from tank .util import suppress_known_deprecation
27
+
30
28
if sys .version_info [0 :2 ] >= (3 , 10 ):
31
29
from setuptools ._distutils .version import LooseVersion
32
30
else :
You can’t perform that action at this time.
0 commit comments