Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

89

90

91

92

93

94

95

96

97

98

99

100

101

102

103

104

105

106

107

108

109

110

111

112

113

114

115

116

117

118

119

120

121

122

123

124

125

126

127

128

129

130

131

132

133

134

135

136

137

138

139

140

141

142

143

144

145

146

147

148

149

150

151

152

153

154

155

156

157

158

159

160

161

162

163

164

165

166

167

168

169

170

171

172

173

174

175

176

177

178

179

180

181

182

183

184

185

186

187

188

189

190

191

192

193

194

195

196

197

198

199

200

201

202

203

204

205

206

207

208

209

""" 

*Unit testing tools* 

""" 

from fundamentals import utKit 

 

# OVERRIDES 

 

 

class utKit(utKit): 

 

""" 

*Override dryx utKit* 

""" 

# Variable Data Atrributes 

 

# Override Variable Data Atrributes 

# xdpc-override-utkit-init 

 

 

# +++++++++++++++++++ NEW CONTENT ++++++++++++++++++ 

 

 

from fundamentals import utKit 

 

# OVERRIDES 

 

 

class utKit(utKit): 

 

""" 

*Override dryx utKit* 

""" 

# Variable Data Atrributes 

 

# Override Variable Data Atrributes 

# Initialisation 

def __init__( 

self, 

moduleDirectory 

): 

self.moduleDirectory = moduleDirectory 

# x-self-arg-tmpx 

 

# SETUP PATHS TO COMMON DIRECTORIES FOR TEST DATA 

self.pathToInputDir = moduleDirectory + "/input/" 

self.pathToOutputDir = moduleDirectory + "/output/" 

 

# SETUP LOGGING 

self.loggerConfig = """ 

version: 1 

formatters: 

file_style: 

format: '* %(asctime)s - %(name)s - %(levelname)s (%(filename)s > %(funcName)s > %(lineno)d) - %(message)s ' 

datefmt: '%Y/%m/%d %H:%M:%S' 

console_style: 

format: '* %(asctime)s - %(levelname)s: %(filename)s:%(funcName)s:%(lineno)d > %(message)s' 

datefmt: '%H:%M:%S' 

html_style: 

format: '<div id="row" class="%(levelname)s"><span class="date">%(asctime)s</span> <span class="label">file:</span><span class="filename">%(filename)s</span> <span class="label">method:</span><span class="funcName">%(funcName)s</span> <span class="label">line#:</span><span class="lineno">%(lineno)d</span> <span class="pathname">%(pathname)s</span> <div class="right"><span class="message">%(message)s</span><span class="levelname">%(levelname)s</span></div></div>' 

datefmt: '%Y-%m-%d <span class= "time">%H:%M <span class= "seconds">%Ss</span></span>' 

handlers: 

console: 

class: logging.StreamHandler 

level: DEBUG 

formatter: console_style 

stream: ext://sys.stdout 

root: 

level: DEBUG 

handlers: [console]""" 

 

# Override Variable Data Atrributes 

self.dbConfig = """ 

version: 1 

db: dryx_unit_testing 

host: localhost 

user: unittesting 

password: utpass 

""" 

 

return 

 

 

# +++++++++++++++++++ NEW CONTENT ++++++++++++++++++ 

 

 

from fundamentals import utKit 

 

# OVERRIDES 

 

 

class utKit(utKit): 

 

""" 

*Override dryx utKit* 

""" 

# Variable Data Atrributes 

 

# Override Variable Data Atrributes 

# Initialisation 

def __init__( 

self, 

moduleDirectory 

): 

self.moduleDirectory = moduleDirectory 

# x-self-arg-tmpx 

 

# SETUP PATHS TO COMMON DIRECTORIES FOR TEST DATA 

self.pathToInputDir = moduleDirectory + "/input/" 

self.pathToOutputDir = moduleDirectory + "/output/" 

 

# SETUP LOGGING 

self.loggerConfig = """ 

version: 1 

formatters: 

file_style: 

format: '* %(asctime)s - %(name)s - %(levelname)s (%(filename)s > %(funcName)s > %(lineno)d) - %(message)s ' 

datefmt: '%Y/%m/%d %H:%M:%S' 

console_style: 

format: '* %(asctime)s - %(levelname)s: %(filename)s:%(funcName)s:%(lineno)d > %(message)s' 

datefmt: '%H:%M:%S' 

html_style: 

format: '<div id="row" class="%(levelname)s"><span class="date">%(asctime)s</span> <span class="label">file:</span><span class="filename">%(filename)s</span> <span class="label">method:</span><span class="funcName">%(funcName)s</span> <span class="label">line#:</span><span class="lineno">%(lineno)d</span> <span class="pathname">%(pathname)s</span> <div class="right"><span class="message">%(message)s</span><span class="levelname">%(levelname)s</span></div></div>' 

datefmt: '%Y-%m-%d <span class= "time">%H:%M <span class= "seconds">%Ss</span></span>' 

handlers: 

console: 

class: logging.StreamHandler 

level: DEBUG 

formatter: console_style 

stream: ext://sys.stdout 

root: 

level: DEBUG 

handlers: [console]""" 

 

# Override Variable Data Atrributes 

self.dbConfig = """ 

version: 1 

db: dryx_unit_testing 

host: localhost 

user: unittesting 

password: utpass 

""" 

 

return 

 

 

# +++++++++++++++++++ NEW CONTENT ++++++++++++++++++ 

 

 

""" 

*Unit testing tools* 

""" 

from fundamentals import utKit 

 

# OVERRIDES 

 

 

class utKit(utKit): 

 

""" 

*Override dryx utKit* 

""" 

# Variable Data Atrributes 

 

# Override Variable Data Atrributes 

# Initialisation 

def __init__( 

self, 

moduleDirectory 

): 

self.moduleDirectory = moduleDirectory 

# x-self-arg-tmpx 

 

# SETUP PATHS TO COMMON DIRECTORIES FOR TEST DATA 

self.pathToInputDir = moduleDirectory + "/input/" 

self.pathToOutputDir = moduleDirectory + "/output/" 

 

# SETUP LOGGING 

self.loggerConfig = """ 

version: 1 

formatters: 

file_style: 

format: '* %(asctime)s - %(name)s - %(levelname)s (%(filename)s > %(funcName)s > %(lineno)d) - %(message)s ' 

datefmt: '%Y/%m/%d %H:%M:%S' 

console_style: 

format: '* %(asctime)s - %(levelname)s: %(filename)s:%(funcName)s:%(lineno)d > %(message)s' 

datefmt: '%H:%M:%S' 

html_style: 

format: '<div id="row" class="%(levelname)s"><span class="date">%(asctime)s</span> <span class="label">file:</span><span class="filename">%(filename)s</span> <span class="label">method:</span><span class="funcName">%(funcName)s</span> <span class="label">line#:</span><span class="lineno">%(lineno)d</span> <span class="pathname">%(pathname)s</span> <div class="right"><span class="message">%(message)s</span><span class="levelname">%(levelname)s</span></div></div>' 

datefmt: '%Y-%m-%d <span class= "time">%H:%M <span class= "seconds">%Ss</span></span>' 

handlers: 

console: 

class: logging.StreamHandler 

level: DEBUG 

formatter: console_style 

stream: ext://sys.stdout 

root: 

level: DEBUG 

handlers: [console]""" 

 

# Override Variable Data Atrributes 

self.dbConfig = """ 

version: 1 

db: dryx_unit_testing 

host: localhost 

user: unittesting 

password: utpass 

""" 

 

return