Exemple #1
0
    def test_ert(self):
        module = __import__("ert")
        path = os.path.abspath(module.__file__)
        path = os.path.dirname(path)

        self.assertTrue(ImportTester.importRecursively(path, "ert"))
    def test_ert_gui(self):
        module = __import__("ert_gui")
        path = os.path.abspath(module.__file__)
        path = os.path.dirname(path)

        self.assertTrue(ImportTester.importRecursively(path, "ert_gui"))
Exemple #3
0
import os
import sys
from ert_tests.import_tester import ImportTester

if __name__ == '__main__':
    PYTHONPATH = sys.argv[1]
    package_name = sys.argv[2]

    sys.path.insert(0, PYTHONPATH)

    package_path = os.path.join(PYTHONPATH, package_name)

    if ImportTester.importRecursively(package_path, package_name):
        sys.exit(0)
    else:
        sys.exit(1)
Exemple #4
0
import os
import sys

PYTHONPATH = sys.argv[1]
sys.path.insert(0, PYTHONPATH)

from ert_tests.import_tester import ImportTester

package_name = sys.argv[2]
package_path = os.path.join(PYTHONPATH, package_name)

if ImportTester.importRecursively(package_path, package_name):
    sys.exit(0)
else:
    sys.exit(1)