From 389d4756e94db84de83d21e08d391ccaf4ed8bd7 Mon Sep 17 00:00:00 2001 From: Petr Kalis Date: Wed, 4 Nov 2020 16:19:11 +0100 Subject: [PATCH] Import tests for #669 --- pype/tests/README.md | 4 ++++ pype/tests/test_lib_restructuralization.py | 13 +++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 pype/tests/README.md create mode 100644 pype/tests/test_lib_restructuralization.py diff --git a/pype/tests/README.md b/pype/tests/README.md new file mode 100644 index 0000000000..c05166767c --- /dev/null +++ b/pype/tests/README.md @@ -0,0 +1,4 @@ +Tests for Pype +-------------- +Trigger by: + `pype test --pype` \ No newline at end of file diff --git a/pype/tests/test_lib_restructuralization.py b/pype/tests/test_lib_restructuralization.py new file mode 100644 index 0000000000..e167c5f555 --- /dev/null +++ b/pype/tests/test_lib_restructuralization.py @@ -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 \ No newline at end of file