diff --git a/storages/python/tests-python/CMakeLists.txt b/storages/python/tests-python/CMakeLists.txt index 144b6fd78..80d4ad473 100644 --- a/storages/python/tests-python/CMakeLists.txt +++ b/storages/python/tests-python/CMakeLists.txt @@ -11,6 +11,7 @@ set(python-tests test_minio test_template test_template-jinja + test_http ) include(FindPythonModule) diff --git a/storages/python/tests-python/test_http.py b/storages/python/tests-python/test_http.py new file mode 100644 index 000000000..8fee6ec03 --- /dev/null +++ b/storages/python/tests-python/test_http.py @@ -0,0 +1,13 @@ +try: + import requests +except ModuleNotFoundError: + print("requests not installed, skipping test") + raise SystemExit(44) # skip test + +import dlite + + +url = "https://raw.githubusercontent.com/SINTEF/dlite/master/storages/python/tests-python/input/test_meta.json" + +meta = dlite.Instance.from_location("http", url) +print(meta)