Skip to content

Commit

Permalink
Last unit test of the feature! Test that animation actually works ins…
Browse files Browse the repository at this point in the history
…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
tngreene committed Jun 19, 2020
1 parent edbaa89 commit 2a10b43
Show file tree
Hide file tree
Showing 4 changed files with 893 additions and 0 deletions.
Binary file not shown.
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])
Loading

0 comments on commit 2a10b43

Please sign in to comment.