Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE3
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
5
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
dee7e83f
authored
Feb 10, 2022
by
Karsa Zoltán István
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mock replace
parent
7c548bc4
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
12 additions
and
12 deletions
+12
-12
circle/common/tests/celery_mock.py
+1
-1
circle/common/tests/test_models.py
+1
-1
circle/common/tests/test_operations.py
+1
-1
circle/dashboard/tests/test_mockedviews.py
+1
-1
circle/dashboard/tests/test_periodic_task.py
+1
-1
circle/dashboard/tests/test_views.py
+1
-1
circle/firewall/tests/test_firewall.py
+1
-1
circle/network/tests/test_views.py
+1
-1
circle/request/tests.py
+1
-1
circle/storage/tests/test_models.py
+1
-1
circle/vm/tests/test_models.py
+1
-1
circle/vm/tests/test_operations.py
+1
-1
No files found.
circle/common/tests/celery_mock.py
View file @
dee7e83f
...
...
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License along
# with CIRCLE. If not, see <http://www.gnu.org/licenses/>.
from
mock
import
patch
from
unittest.
mock
import
patch
class
MockCeleryMixin
(
object
):
...
...
circle/common/tests/test_models.py
View file @
dee7e83f
...
...
@@ -18,7 +18,7 @@
from
collections
import
deque
from
django.test
import
TestCase
from
mock
import
MagicMock
from
unittest.
mock
import
MagicMock
from
.celery_mock
import
MockCeleryMixin
from
.models
import
TestClass
...
...
circle/common/tests/test_operations.py
View file @
dee7e83f
...
...
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License along
# with CIRCLE. If not, see <http://www.gnu.org/licenses/>.
from
mock
import
MagicMock
,
patch
from
unittest.
mock
import
MagicMock
,
patch
from
django.test
import
TestCase
...
...
circle/dashboard/tests/test_mockedviews.py
View file @
dee7e83f
...
...
@@ -19,7 +19,7 @@ import unittest
import
warnings
from
factory
import
Factory
,
Sequence
from
mock
import
patch
,
MagicMock
from
unittest.
mock
import
patch
,
MagicMock
from
django.contrib.auth.models
import
User
,
AnonymousUser
from
django.core.exceptions
import
PermissionDenied
...
...
circle/dashboard/tests/test_periodic_task.py
View file @
dee7e83f
...
...
@@ -16,7 +16,7 @@
# with CIRCLE. If not, see <http://www.gnu.org/licenses/>.
import
unittest
from
mock
import
patch
,
MagicMock
from
unittest.
mock
import
patch
,
MagicMock
from
django.contrib.auth.models
import
User
...
...
circle/dashboard/tests/test_views.py
View file @
dee7e83f
...
...
@@ -33,7 +33,7 @@ from circle.vm.operations import (WakeUpOperation, AddInterfaceOperation,
DeployOperation
,
RenameOperation
)
from
..models
import
Profile
from
circle.firewall.models
import
Vlan
,
Host
,
VlanGroup
from
mock
import
Mock
,
patch
from
unittest.
mock
import
Mock
,
patch
from
simplesshkey.models
import
UserKey
import
django.conf
...
...
circle/firewall/tests/test_firewall.py
View file @
dee7e83f
...
...
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License along
# with CIRCLE. If not, see <http://www.gnu.org/licenses/>.
from
mock
import
patch
from
unittest.
mock
import
patch
from
netaddr
import
IPSet
,
AddrFormatError
import
django.conf
...
...
circle/network/tests/test_views.py
View file @
dee7e83f
...
...
@@ -18,7 +18,7 @@
from
django.test
import
TestCase
from
django.test.client
import
Client
from
django.contrib.auth.models
import
User
,
Group
from
mock
import
Mock
from
unittest.
mock
import
Mock
from
common.tests.celery_mock
import
MockCeleryMixin
from
dashboard.tests.test_views
import
LoginMixin
...
...
circle/request/tests.py
View file @
dee7e83f
...
...
@@ -19,7 +19,7 @@ from django.test import TestCase
from
django.test.client
import
Client
from
django.contrib.auth.models
import
User
,
Permission
from
mock
import
Mock
,
patch
from
unittest.
mock
import
Mock
,
patch
from
common.tests.celery_mock
import
MockCeleryMixin
...
...
circle/storage/tests/test_models.py
View file @
dee7e83f
...
...
@@ -19,7 +19,7 @@ from datetime import timedelta
from
django.test
import
TestCase
from
django.utils
import
timezone
from
mock
import
MagicMock
from
unittest.
mock
import
MagicMock
from
..models
import
Disk
,
DataStore
...
...
circle/vm/tests/test_models.py
View file @
dee7e83f
...
...
@@ -16,7 +16,7 @@
# with CIRCLE. If not, see <http://www.gnu.org/licenses/>.
from
datetime
import
datetime
from
mock
import
Mock
,
MagicMock
,
patch
,
call
from
unittest.
mock
import
Mock
,
MagicMock
,
patch
,
call
import
types
from
celery.contrib.abortable
import
AbortableAsyncResult
...
...
circle/vm/tests/test_operations.py
View file @
dee7e83f
...
...
@@ -16,7 +16,7 @@
# with CIRCLE. If not, see <http://www.gnu.org/licenses/>.
from
django.test
import
TestCase
from
mock
import
MagicMock
from
unittest.
mock
import
MagicMock
from
common.operations
import
operation_registry_name
as
op_reg_name
from
vm.models
import
Instance
,
InstanceActivity
,
Node
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment