-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathFTGTemplate.tmpl
56 lines (56 loc) · 1.18 KB
/
FTGTemplate.tmpl
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
#import os
#def captureAfterUse
#end def captureAfterUse
##
#def captureBeforeContains
#end def captureBeforeContains
##
#def captureAfterLastSpecification
#end def captureAfterLastSpecification
##
#def captureBeforeEnd
#end def captureBeforeEnd
##
#def captureAfterSubroutine
#end def captureAfterSubroutine
##
#def export
#end def export
##
#def exportAfterUse
#end def exportAfterUse
##
#def exportBeforeContains
$export
#end def exportBeforeContains
##
#def replay
#end def replay
##
#def include(file)
#include os.path.dirname(self._CHEETAH_src) + '/../' + file
#end def include
##
#attr part = ''
##
#if $part == 'captureAfterUse'
$captureAfterUse
#elif $part == 'captureBeforeContains'
$captureBeforeContains
#elif $part == 'captureAfterLastSpecification'
$captureAfterLastSpecification
#elif $part == 'captureBeforeEnd'
$captureBeforeEnd
#elif $part == 'captureAfterSubroutine'
$captureAfterSubroutine
#elif $part == 'exportAfterUse'
$exportAfterUse
#elif $part == 'exportBeforeContains'
$exportBeforeContains
#elif $part == 'replay'
$replay
#elif not $part
#raise ValueError('No template part given')
#else
#raise ValueError('Not a valid template part: ' + str($part))
#end if