mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Import tests for #669
This commit is contained in:
parent
acb134c208
commit
389d4756e9
2 changed files with 17 additions and 0 deletions
4
pype/tests/README.md
Normal file
4
pype/tests/README.md
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
Tests for Pype
|
||||||
|
--------------
|
||||||
|
Trigger by:
|
||||||
|
`pype test --pype`
|
||||||
13
pype/tests/test_lib_restructuralization.py
Normal file
13
pype/tests/test_lib_restructuralization.py
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue