Repository: DevOps-MBSE/AaC (language: python)

Issue:
📋 [TASK] - Improve Tests in Version Unit Tests
### Parent Feature

#844

### Task Description

As an AaC Test Developer, I want to expand the test coverage in my unit tests, so that I can have more confidence in the robustness of my code.

### Acceptance Criteria

- [ ] Update test logic as necessary to expand test coverage. 
  - [ ] Happy path and sad path at a minimum
- [ ] (Stretch) Incorporate a behave feature file for testing if applicable.
- [ ] Run `flake8` on the targeted test directory and address findings.
- [ ] Document any identified gaps.

### Unresolved questions

_No response_


Discussion / hints:

Fix patch:
diff --git a/python/features/plugins/version.feature b/python/features/plugins/version.feature
new file mode 100644
index 000000000..698b40b88
--- /dev/null
+++ b/python/features/plugins/version.feature
@@ -0,0 +1,5 @@
+Feature: Version Evaluation
+
+    Scenario: Get AaC Version
+        When I run the "version" command with no arguments and with no flags
+        Then I should receive a message that the command was successful
diff --git a/python/src/aac/__init__.py b/python/src/aac/__init__.py
index 11226b40c..9db9c851a 100644
--- a/python/src/aac/__init__.py
+++ b/python/src/aac/__init__.py
@@ -12,7 +12,7 @@
 import logging
 import os
 
-__version__ = "0.4.42"
+__version__ = "0.4.43"
 
 __log_file_name__ = os.path.join(os.path.dirname(__file__), "aac.log")
 


Test patch:
diff --git a/python/tests/test_aac/plugins/version/test_version.py b/python/tests/test_aac/plugins/version/test_version.py
index 4a84af9b4..ad6ede94e 100644
--- a/python/tests/test_aac/plugins/version/test_version.py
+++ b/python/tests/test_aac/plugins/version/test_version.py
@@ -5,7 +5,7 @@
 from aac.execute.aac_execution_result import ExecutionStatus
 
 
-from aac.plugins.version.version_impl import plugin_name, version
+from aac.plugins.version.version_impl import version
 
 
 class TestVersion(TestCase):
@@ -22,7 +22,7 @@ def test_version(self):
         version_values = message.message.split(".")
         self.assertEqual(len(version_values), 3, "Version should have 3 values separated by . to follow semantic versioning standards.")
         for value in version_values:
-            self.assertTrue(value.isdigit(), f"Each token of the version should be a digit.  Received {value}")
+            self.assertTrue(value.isdigit(), msg=f"Each token of the version should be a digit.  Received {value}")
 
     def run_version_cli_command_with_args(self, args: list[str]) -> Tuple[int, str]:
         """Utility function to invoke the CLI command with the given arguments."""
@@ -39,8 +39,8 @@ def test_cli_version(self):
         exit_code, output_message = self.run_version_cli_command_with_args(args)
 
         self.assertEqual(0, exit_code)  # asserts the command ran successfully
-        self.assertTrue(len(output_message) > 0)  # asserts the command produced output
+        self.assertGreater(len(output_message), 0)  # asserts the command produced output
         version_values = output_message.strip().split(".")
         self.assertEqual(len(version_values), 3, "Version should have 3 values separated by . to follow semantic versioning standards.")
         for value in version_values:
-            self.assertTrue(value.isdigit(), f"Each token of the version should be a digit.  Received {value}")
\ No newline at end of file
+            self.assertTrue(value.isdigit(), msg=f"Each token of the version should be a digit.  Received {value}")