HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.  2.0.0-chaika
Hierarchical Cluster Engine Python language binding
ftests.ftest_DCC.TestDCC Class Reference
Inheritance diagram for ftests.ftest_DCC.TestDCC:
Collaboration diagram for ftests.ftest_DCC.TestDCC:

Public Member Functions

def setUp (self)
 
def tearDown (self)
 
def commonTestCode (self, args, isSave)
 
def testFunctionalSiteNewOk (self)
 

Public Attributes

 dtmc
 
 connectionBuilderMock
 
 dcc
 

Detailed Description

Definition at line 77 of file ftest_DCC.py.

Member Function Documentation

◆ commonTestCode()

def ftests.ftest_DCC.TestDCC.commonTestCode (   self,
  args,
  isSave 
)

Definition at line 89 of file ftest_DCC.py.

89  def commonTestCode(self, args, isSave):
90  self.dcc = DCC()
91  self.dcc.connectionBuilder = self.connectionBuilderMock
92  DCC.argv = args
93  self.dcc.setup()
94  try:
95  self.dcc.run()
96  except SystemExit as excp:
97  print("\nEXIT CODE >>> " + str(excp.message))
98  self.dcc.close()
99 
Here is the caller graph for this function:

◆ setUp()

def ftests.ftest_DCC.TestDCC.setUp (   self)

Definition at line 79 of file ftest_DCC.py.

79  def setUp(self):
80  self.dtmc = None
81  self.connectionBuilderMock = MagicMock(spec=ConnectionBuilderLight)
82  self.connectionBuilderMock.build.side_effect = connectionBuilderMockBuild
83 
84 

◆ tearDown()

def ftests.ftest_DCC.TestDCC.tearDown (   self)

Definition at line 85 of file ftest_DCC.py.

85  def tearDown(self):
86  pass
87 
88 

◆ testFunctionalSiteNewOk()

def ftests.ftest_DCC.TestDCC.testFunctionalSiteNewOk (   self)

Definition at line 128 of file ftest_DCC.py.

128  def testFunctionalSiteNewOk(self):
129  global fName
130  fName = "./save_pic/dcc_site_new_ok.json"
131  print("SITE NEW OK START >>> \n")
132  self.commonTestCode(["-cmd", "SITE_NEW", "-f", "./jsons/dcc_site_new_ok.json", "--config", "./dcc.ini"], True)
133 
Here is the call graph for this function:

Member Data Documentation

◆ connectionBuilderMock

ftests.ftest_DCC.TestDCC.connectionBuilderMock

Definition at line 81 of file ftest_DCC.py.

◆ dcc

ftests.ftest_DCC.TestDCC.dcc

Definition at line 90 of file ftest_DCC.py.

◆ dtmc

ftests.ftest_DCC.TestDCC.dtmc

Definition at line 80 of file ftest_DCC.py.


The documentation for this class was generated from the following file: