Dalai Felinto
b6ba507c1b
Layers unittest: layer_cyncing test was not being called
2017-04-10 10:08:29 +02:00
Dalai Felinto
90b2b99505
Unitettesting: Force python errors to show as error
2017-04-10 10:03:02 +02:00
Sybren A. Stüvel
31c272e840
Simplified some test code in render_layer_common.py
2017-04-07 17:51:23 +02: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
Sybren A. Stüvel
6cf3fa9ff0
Tests: import blendfile without modifying sys.path
2017-04-07 17:29:14 +02:00
Dalai Felinto
967b04cb07
Layer unittesting: pep8 touch up on test_evaluation_selectability_f.py
2017-04-06 12:22:21 +02:00
Dalai Felinto
a78e97b206
Layer/Depsgraph: Update depsgraph for new objects
2017-04-03 18:47:50 +02:00
Dalai Felinto
db6b4639fc
Layer: Adding unittest for a problem with selectability evaluation
...
This is currently failing (and causing the object_delete test to fail). To be fixed separately
2017-04-03 17:46:03 +02:00
Dalai Felinto
97b9afda37
Layers / Depsgraph: Unittesting for selection and visibility evaluation
2017-04-01 01:22:39 +02:00
Dalai Felinto
b0998df608
Layers: Fix scene copying after IDProperty changes
...
(also unittest: split scene copy in 4 tests)
2017-03-31 17:37:52 +02:00
Dalai Felinto
d9b89ca0d0
Layers unittest: Fix tests breaking since Folded was removed
2017-03-31 17:37:49 +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
6883a983e6
Layer Unittesting: pep8 1/2
...
Manual corrections, using line-width of 120
2017-03-22 15:27:20 +01:00
Dalai Felinto
a6d4ac28f5
Layers unittesting: update after doversion changes
...
Collections now are called "Collection 1", instead of "1"
2017-03-20 10:30:19 +01:00
Dalai Felinto
ddedcf7ada
Outliner/layer: fix users trying to drop a collection into itself (recursion hell)
2017-03-13 17:38:37 +01:00
Dalai Felinto
1100ddeaa9
Layers: fix bug in move layer collection above/below
...
Reported by Julian Eisel (Severin)
2017-03-10 16:48:09 +01:00
Dalai Felinto
d9f42e5fab
Layers: move LayerCollection
...
This is to be used from the Outliner, when dragging and dropping
collections from the Active Render Layer
It also includes a cleanup on the outliner so it calls the new
functions. Note: the outliner still needs fix to allow all the
functionality here exposed.
But this will be tackled by Julian Eisel later.
2017-03-08 23:35:54 +01:00
Dalai Felinto
3a1748146b
Layers: move SceneCollection
...
This is to be used from the Outliner, when dragging and dropping.
It does not include moving LayerCollection (from Active Render Layer)
2017-03-08 23:35:54 +01:00
Dalai Felinto
007fcfc193
Fixup for layer rename unittest (rB3baa186724)
2017-03-02 09:52:33 +01:00
Dalai Felinto
a65af5d0cf
Layers unittest: isolate the depsgraph crash in individual tests
...
(and re-order the tests alphabetically)
2017-03-02 09:40:17 +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
Dalai Felinto
2f9a0dfe64
Fix T50714: Collections: Adding object to scene without an existing collection
...
This was causing blender to segfault.
We now add create a new collection and link to the layer before adding
the new object
(also included unittests, and requires updated lib/tests)
2017-02-24 10:10:24 +01:00
Dalai Felinto
8261a84ffb
Unittest: split object_add in individual test files
...
(and small cleanup in unittest)
This is required to the upcoming unittest + bugfix
2017-02-24 10:10:24 +01:00
Dalai Felinto
7868c0aa8b
Layers: Fix unittest after 65a75e11
2017-02-17 18:27:32 +01:00
Dalai Felinto
9cb44cbba1
Layers: Fix visibility evalution + Unittesting
...
test_evaluation_visibility_a failed before, but it is now fixed
test_evaluation_visibility_b passed before and was used as control to make sure it was not broken
2017-02-17 14:08:31 +01:00
Dalai Felinto
e30bc6f517
Layer Unittest: use macro for tests
2017-02-15 12:12:59 +01:00
Dalai Felinto
b9762fed93
Layers: Unittesting - make them granular
...
Some tests may break Blender, which makes the entire unittest routine to fail.
They are now I isolate the tests into individual files
Kudos to Sybren Stüvel and Sergey Sharybin for the advice.
Note: at the moment test_link.py is failing (since a41bbfb7
)
2017-02-14 18:21:46 +01:00