Background Image
Table of Contents Table of Contents
Previous Page  473 / 478 Next Page
Information
Show Menu
Previous Page 473 / 478 Next Page
Page Background

templates,

69 71 , 90

test class in,

93

test client,

88

,

93

test fixtures,

304

TestCase,

23

unit testing in,

23

URLs in,

24 30

,

88 , 94

,

96

,

102

,

106

,

108

,

110

validation quirk,

178

view functions in,

24

,

89 , 94

,

105 108

,

326

and virtualenvs,

142 144

Django-BrowserID,

243

documentation, tests as,

296

domain names,

135

Don’t Test Constants rule,

40

double-loop TDD,

47

,

323

DRY (don’t repeat yourself),

59

,

396

duplicates, eliminating,

58

,

211 221

E

encryption,

436

end-to-end test (see functional tests/testing

(FT))

error messages,

435

error pages,

434

evaluating third-party systems,

252

expected failure,

16 , 19

explicit waits,

253

exploratory coding,

195

,

242

(see also spiking)

F

Fabric,

167

,

314

,

426

configuration,

163

installing,

157

sample deployment script,

158 161

Fake XMLHttpRequest,

268

fixtures

in functional tests,

303

in JavaScript tests,

229

on staging server,

311 317

foreign key relationship,

99

forms

advanced,

211 223

autogeneration,

195

customising form field input,

194

experimenting with,

194

ModelForm,

195

save methods,

208

simple,

193 210

thin views,

210

tips for,

210

using in views,

198 207

validation testing and customising,

196

Fuctional Core, Imperative Shell architecture,

403

functional tests/testing (FT),

5 , 398

automation of (see continuous integration

(CI))

cleanup,

77 80 , 95

,

387

de-duplication,

320

defining,

14

for de-spiking,

251

for duplicate items,

211 221

isolation in,

77 80

,

112

in JavaScript,

232 234

for layout and style,

115 118

,

148

,

173

multiple users,

387

,

393 394

pros and cons,

364

in provisioning,

139

running unit tests only,

80

safeguards with,

317

splitting,

171

for staging sites,

132

,

133

unittest module,

13 19

vs. unit tests,

22 , 303

in views,

223

G

generator expression,

39

GET requests,

198

,

205

get_user,

291

Git

repository setup,

8 11

reset --hard,

118

tags,

166

,

238

global variables,

228

greedy regular expressions,

106

Gunicorn,

148 155

,

165

,

307

,

425

H

headless browsers,

372

helper functions/methods,

59 , 172

,

175

,

206

,

226

,

350

,

390 393

hexagonal architecture,

403

hosting options,

136

Index

|

445