From 7de4fa442b8707ab248358f7ff33e9f21f4d61f2 Mon Sep 17 00:00:00 2001
From: Alexey Stratulat <alexey.stratulat@demlabs.net>
Date: Mon, 10 Jun 2019 17:27:35 +0700
Subject: [PATCH] I wrote a small test, it checks libdap initialization,
 setting the logging level.

---
 test/main_test.py | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 test/main_test.py

diff --git a/test/main_test.py b/test/main_test.py
new file mode 100644
index 00000000..334bc5ca
--- /dev/null
+++ b/test/main_test.py
@@ -0,0 +1,15 @@
+import libdapConnector
+
+json_string = """{
+    "modules": "libdap",
+    "dap": {
+       "config_dir": "/opt/dap/etc/",
+       "log_level": "Debug",
+       "application_name": "TestAPP"
+    }
+    }"""
+print("Standard Configuration \n"+json_string)
+daptest = libdapConnector.Dap(json_string)
+print("Initialization of the DAP")
+daptest.setLogLevel("DEBUG")
+print("Level logging ""DEBUG"" done")
-- 
GitLab