Extracting Ns._create_task() and creating unit test
Extracted the _create_task() to ease the testability of that code.
Introduced a unit test to cover that function.
Re-enabled unit tests and black now is mandatory.
Change-Id: I6b304b14b60b182dee6b274cf95228a81ddc2771
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
diff --git a/releasenotes/notes/extracting_create_task-e76ed58bfe5a6751.yaml b/releasenotes/notes/extracting_create_task-e76ed58bfe5a6751.yaml
new file mode 100644
index 0000000..9726d36
--- /dev/null
+++ b/releasenotes/notes/extracting_create_task-e76ed58bfe5a6751.yaml
@@ -0,0 +1,23 @@
+#######################################################################################
+# Copyright ETSI Contributors and Others.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#######################################################################################
+---
+other:
+ - |
+ Extraction of _create_task() from being a nested function inside Ns.deploy().
+ The _create_task() function is now a static method inside the Ns class. This
+ eases the testability of _create_task().
+ With this extraction a unit test was introduced to cover the extracted function.