Import tests for #669

This commit is contained in:
Petr Kalis 2020-11-04 16:19:11 +01:00
parent acb134c208
commit 389d4756e9
2 changed files with 17 additions and 0 deletions

4
pype/tests/README.md Normal file
View file

@ -0,0 +1,4 @@
Tests for Pype
--------------
Trigger by:
`pype test --pype`

View file

@ -0,0 +1,13 @@
# Test for backward compability of restructure of lib.py into lib library
# #664
# Contains simple imports that should still work
def test_backward_compatibility(printer):
printer("Test if imports still work")
try:
from pype.lib import filter_pyblish_plugins
from pype.lib import execute_hook
from pype.lib import PypeHook
except ImportError as e:
raise