Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #324, texture slot raises exception when image is None, and add…
…s new unit test
- Loading branch information
Showing
3 changed files
with
36 additions
and
13 deletions.
There are no files selected for viewing
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
Binary file not shown.
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,16 @@ | ||
import bpy | ||
import os | ||
import inspect | ||
import sys | ||
|
||
from io_xplane2blender.tests import * | ||
from io_xplane2blender import xplane_config | ||
|
||
__dirname__ = os.path.dirname(__file__) | ||
|
||
class TestTextureSlotHasNoImage(XPlaneTestCase): | ||
def test_texture_slot_has_no_image(self): | ||
out = self.exportLayer(0) | ||
self.assertLoggerErrors(1) | ||
|
||
runTestCases([TestTextureSlotHasNoImage]) |