Lines 1-10
Link Here
|
1 |
noseOfYeti creates a custom Python codec that lets you write your tests using an |
1 |
noseOfYeti creates a custom Python codec that lets you write your tests |
2 |
RSpec inspired DSL (i.e. `describe` and `it` blocks). It uses the fact that you |
2 |
using an RSpec inspired DSL (i.e. `describe` and `it` blocks). It uses the |
3 |
can register a codec that is able to modify a Python file before executing it. |
3 |
fact that you can register a codec that is able to modify a Python file |
4 |
Using this we can make it so that when Python imports a file with a particular |
4 |
before executing it. Using this we can make it so that when Python imports |
5 |
encoding as the first line of the file it will be intercepted and potentially |
5 |
a file with a particular encoding as the first line of the file it will be |
6 |
rewritten into something else before the import continues. |
6 |
intercepted and potentially rewritten into something else before the import |
|
|
7 |
continues. |
7 |
|
8 |
|
8 |
noseOfYeti uses this technique to translate from the DSL it defines, into |
9 |
noseOfYeti uses this technique to translate from the DSL it defines, into |
9 |
Python classes and functions that then will be executed by your test framework |
10 |
Python classes and functions that then will be executed by your test |
10 |
of choice. |
11 |
framework of choice. |
11 |
- |
|
|