annotate tests/test.ini @ 87:29ca60f428cc

STUB: tests/test.py tests/test_include.txt
author Jeff Hammel <k0scist@gmail.com>
date Fri, 21 Mar 2014 22:27:51 -0700
parents 2449fb4a89c1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
78
2449fb4a89c1 rearrange test.ini file to make more sense; write another test class
Jeff Hammel <jhammel@mozilla.com>
parents: 76
diff changeset
1 # simple app with a callback
19
8987867698ee a bit more stubbing of .ini parsing
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
2 [:%(here)s/objects.py:StringMunge]
8987867698ee a bit more stubbing of .ini parsing
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
3 . = PRE
33
48f61cea0a3c test calling the thing
Jeff Hammel <jhammel@mozilla.com>
parents: 19
diff changeset
4 delimeter = !!!
19
8987867698ee a bit more stubbing of .ini parsing
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
5 callback = %(callback)s
36
362912842985 start stubbing out wrappers....i am somewhat perplexed
Jeff Hammel <jhammel@mozilla.com>
parents: 33
diff changeset
6 [callback:%(here)s/objects.py:stringsort]
362912842985 start stubbing out wrappers....i am somewhat perplexed
Jeff Hammel <jhammel@mozilla.com>
parents: 33
diff changeset
7
78
2449fb4a89c1 rearrange test.ini file to make more sense; write another test class
Jeff Hammel <jhammel@mozilla.com>
parents: 76
diff changeset
8 # fibonacci sequence function
38
f6616a5f468f test fibonacci sequence
Jeff Hammel <jhammel@mozilla.com>
parents: 36
diff changeset
9 [fibonacci:%(here)s/objects.py:fib]
f6616a5f468f test fibonacci sequence
Jeff Hammel <jhammel@mozilla.com>
parents: 36
diff changeset
10
78
2449fb4a89c1 rearrange test.ini file to make more sense; write another test class
Jeff Hammel <jhammel@mozilla.com>
parents: 76
diff changeset
11 # illustrate decorator syntax; bind '@' to a decorator
36
362912842985 start stubbing out wrappers....i am somewhat perplexed
Jeff Hammel <jhammel@mozilla.com>
parents: 33
diff changeset
12 [@:%(here)s/objects.py:wrap]
362912842985 start stubbing out wrappers....i am somewhat perplexed
Jeff Hammel <jhammel@mozilla.com>
parents: 33
diff changeset
13 app = %(object)s
78
2449fb4a89c1 rearrange test.ini file to make more sense; write another test class
Jeff Hammel <jhammel@mozilla.com>
parents: 76
diff changeset
14 [readable-fibonacci:@:%(here)s/objects.py:fib]
57
cb1898f8c72a * illustrate another pattern
Jeff Hammel <jhammel@mozilla.com>
parents: 56
diff changeset
15 [foo:@:fibonacci]
cb1898f8c72a * illustrate another pattern
Jeff Hammel <jhammel@mozilla.com>
parents: 56
diff changeset
16
78
2449fb4a89c1 rearrange test.ini file to make more sense; write another test class
Jeff Hammel <jhammel@mozilla.com>
parents: 76
diff changeset
17 # override: this will bind the result to fibonacci with an arg of n=5
57
cb1898f8c72a * illustrate another pattern
Jeff Hammel <jhammel@mozilla.com>
parents: 56
diff changeset
18 [bar:fibonacci]
69
b9d9a94bfa19 override section now works
Jeff Hammel <jhammel@mozilla.com>
parents: 60
diff changeset
19 n=5
60
cc361ad8a692 stub out future directions for decorators and their testing a bit
Jeff Hammel <jhammel@mozilla.com>
parents: 57
diff changeset
20
78
2449fb4a89c1 rearrange test.ini file to make more sense; write another test class
Jeff Hammel <jhammel@mozilla.com>
parents: 76
diff changeset
21 # illustrate decorator syntax with overrides
60
cc361ad8a692 stub out future directions for decorators and their testing a bit
Jeff Hammel <jhammel@mozilla.com>
parents: 57
diff changeset
22 [extended-fibonacci:@:four=4,five=5:fibonacci]
76
1339185cbd2d add another test
Jeff Hammel <jhammel@mozilla.com>
parents: 69
diff changeset
23 [extended-fibonacci-2:@:five=5,eight=8:%(here)s/objects.py:fib]
78
2449fb4a89c1 rearrange test.ini file to make more sense; write another test class
Jeff Hammel <jhammel@mozilla.com>
parents: 76
diff changeset
24
2449fb4a89c1 rearrange test.ini file to make more sense; write another test class
Jeff Hammel <jhammel@mozilla.com>
parents: 76
diff changeset
25 # if you need more verbose control of overrides, you can have it
2449fb4a89c1 rearrange test.ini file to make more sense; write another test class
Jeff Hammel <jhammel@mozilla.com>
parents: 76
diff changeset
26 [verbose-decorator:@]
2449fb4a89c1 rearrange test.ini file to make more sense; write another test class
Jeff Hammel <jhammel@mozilla.com>
parents: 76
diff changeset
27 four = 4
2449fb4a89c1 rearrange test.ini file to make more sense; write another test class
Jeff Hammel <jhammel@mozilla.com>
parents: 76
diff changeset
28 five = 5
2449fb4a89c1 rearrange test.ini file to make more sense; write another test class
Jeff Hammel <jhammel@mozilla.com>
parents: 76
diff changeset
29 [extended-fibonacci-3:verbose-decorator:fibonacci]