Campbell Barton
2ecb9856bc
Cleanup: move copy-paste code into function
2017-06-19 16:12:11 +10:00
Sybren A. Stüvel
ad60283bc8
No more need to alter sys.path in each and every render_layer unit test.
...
I tried the clean way, by setting the PYTHONPATH environment variable for
CTest, using SET (CTEST_ENVIRONMENT blablab), but that didn't seem to
work.
2017-04-07 17:50:47 +02:00
Dalai Felinto
1f17b72efe
Layers unittest: Breaking pep8, but getting tests to work again
...
I will investigate this further later.
The big problem is that the way I'm running tests if I have any error
(e.g., ImportError) the pass still pass.
2017-03-31 17:37:45 +02:00
Dalai Felinto
505cc694b3
Layer Unittesting: pep8 2/2
...
Mass replacing the common code of all tests
```
echo "Fixing $1"
ed "$1" <<'EOF'
1,/Testing/d
i
from render_layer_common import *
import unittest
import os
import sys
sys.path.append(os.path.dirname(__file__))
.
w
q
EOF
```
Using line-width of 120
2017-03-22 15:27:47 +01:00
Dalai Felinto
007fcfc193
Fixup for layer rename unittest (rB3baa186724)
2017-03-02 09:52:33 +01:00
Julian Eisel
3baa186724
Add tests for layer renaming
...
Could have an own file for each test, but this is good enough.
With great help from @dfelinto, thanks!
2017-03-01 20:14:20 +01:00