-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Last unit test of the feature! Test that animation actually works ins…
…tead of assuming that just because we just the bake matrix we're good. Well, we are good and it looks really funny in X-Plane
- Loading branch information
Showing
4 changed files
with
893 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+5.49 MB
tests/lights/automatic_detect/automatic_parent_and_self_animated.test.blend
Binary file not shown.
37 changes: 37 additions & 0 deletions
37
tests/lights/automatic_detect/automatic_parent_and_self_animated.test.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import inspect | ||
|
||
from typing import Tuple | ||
import os | ||
import sys | ||
|
||
import bpy | ||
from io_xplane2blender import xplane_config | ||
from io_xplane2blender.tests import * | ||
from io_xplane2blender.tests import test_creation_helpers | ||
|
||
__dirname__ = os.path.dirname(__file__) | ||
|
||
|
||
class TestAutomaticParentAndSelfAnimated(XPlaneTestCase): | ||
def test_self_animated_lights(self)->None: | ||
filename = inspect.stack()[0].function | ||
|
||
self.assertExportableRootExportEqualsFixture( | ||
filename[5:], | ||
os.path.join(__dirname__, "fixtures", f"{filename}.obj"), | ||
{"ANIM", "LIGHT"}, | ||
filename, | ||
) | ||
|
||
def test_parent_animated_lights(self)->None: | ||
filename = inspect.stack()[0].function | ||
|
||
self.assertExportableRootExportEqualsFixture( | ||
filename[5:], | ||
os.path.join(__dirname__, "fixtures", f"{filename}.obj"), | ||
{"ANIM", "LIGHT"}, | ||
filename, | ||
) | ||
|
||
|
||
runTestCases([TestAutomaticParentAndSelfAnimated]) |
Oops, something went wrong.