File tree Expand file tree Collapse file tree
openwisp_network_topology/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010from django .test import TestCase
1111from django .utils .timezone import now
1212
13- from openwisp_users .models import Organization
14-
1513from .. import settings as app_settings
1614from .utils import CreateGraphObjectsMixin , CreateOrgMixin , LoadMixin
1715
16+ Organization = swapper .load_model ('openwisp_users' , 'Organization' )
1817Link = swapper .load_model ('topology' , 'Link' )
1918Node = swapper .load_model ('topology' , 'Node' )
2019Snapshot = swapper .load_model ('topology' , 'Snapshot' )
Original file line number Diff line number Diff line change 11import logging
22import os
33
4- from openwisp_users .models import Organization
4+ import swapper
5+
56from openwisp_utils .tests import TimeLoggingTestRunner
67
8+ Organization = swapper .load_model ('openwisp_users' , 'Organization' )
9+
710
811class CreateOrgMixin (object ):
912 def _create_org (self , ** kwargs ):
You can’t perform that action at this time.
0 commit comments