Do not initialize anything during import phase
The structure of the program is compromised by doing too much logic in the import phase. We can read the code more cleanly if we can see where the intended initialization code is called. This may make tests slightly more tedious to write, but that should be handled by writing generic fixtures which can be reused for exactly this purpose. Change-Id: I1d221e2f90d1f6e89717a37d2128caabd077d30a
This commit is contained in:
@@ -28,7 +28,6 @@ from heat.tests.v1_1 import fakes
|
||||
from novaclient.v1_1 import security_groups as nova_sg
|
||||
from novaclient.v1_1 import security_group_rules as nova_sgr
|
||||
|
||||
|
||||
NovaSG = collections.namedtuple('NovaSG',
|
||||
' '.join([
|
||||
'name',
|
||||
|
||||
Reference in New Issue
Block a user