testgenie-py 0.3.5__py3-none-any.whl → 0.3.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -59,6 +59,8 @@ class DockerController:
59
59
  self.debug(f"project_root: {project_root}")
60
60
  container = self.run_container(docker_client, image_name, docker_args, project_root)
61
61
 
62
+ self.clean_up(dest_path)
63
+
62
64
  # Stream the logs to the console
63
65
  logs_output = self.get_logs(container)
64
66
  self.debug(logs_output)
@@ -221,6 +223,17 @@ class DockerController:
221
223
  print("Dockerfile not found in local project or package.")
222
224
  sys.exit(1)
223
225
 
226
+ def clean_up(self, dest_path: str) -> None:
227
+ # Remove copied file from project root
228
+ try:
229
+ if os.path.exists(dest_path):
230
+ os.remove(dest_path)
231
+ print(f"Deleted file from {dest_path}")
232
+ self.logger.debug(f"Deleted file from {dest_path}")
233
+ except Exception as e:
234
+ print(f"Failed to delete file: {e}")
235
+ self.logger.error(f"Failed to delete file: {e}")
236
+
224
237
  @staticmethod
225
238
  def is_inside_docker() -> bool:
226
239
  """Check if the current process is running inside a Docker container."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: testgenie-py
3
- Version: 0.3.5
3
+ Version: 0.3.6
4
4
  Summary: Automated unit test generation tool for Python.
5
5
  Author: cjseitz
6
6
  Author-email: charlesjseitz@gmail.com
@@ -12,7 +12,7 @@ testgen/analyzer/test_case_analyzer.py,sha256=0qLcRKOrQ4Uyh1ZMecVTkY9bWjNnx7Orid
12
12
  testgen/analyzer/test_case_analyzer_context.py,sha256=7umDPHBjoTaCRvZOdNynpnWsr14Gy0E2hpMBPK8mz3Q,2128
13
13
  testgen/controller/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  testgen/controller/cli_controller.py,sha256=DGPAt370TTMurL8gLKrVsl1yAP64a5OvgBBuBqhHX4I,9011
15
- testgen/controller/docker_controller.py,sha256=a-cSW0PqnH1eD-rVOWvdZtY8k7e4A_Ptfw69osWPpL8,8699
15
+ testgen/controller/docker_controller.py,sha256=HCSvNh8tVXzZ91Z2cQsHtoRcb6y-sq1L838BQ2hz4pU,9190
16
16
  testgen/docker/Dockerfile,sha256=6mutzP0ZkVueuvMLCOy2bsyGxWjLHU-cq7RFkuC8r5Y,781
17
17
  testgen/generator/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  testgen/generator/code_generator.py,sha256=-Nh5Jt4my29YWA_LKWn98I4jvDA-fNi6AGuw-vJhRV0,3171
@@ -61,7 +61,7 @@ testgen/util/z3_utils/branch_condition.py,sha256=N9FNR-iJmxIC62NpDQNVZ1OP14rXXqY
61
61
  testgen/util/z3_utils/constraint_extractor.py,sha256=RXJLpmk6dAvHZ27839VXKXNtdy9St1F-17-pSEFu4bM,1285
62
62
  testgen/util/z3_utils/variable_finder.py,sha256=dUh3F9_L_BDMz1ybiGss09LLcM_egbitgj0FT5Nh9u4,245
63
63
  testgen/util/z3_utils/z3_test_case.py,sha256=yF4oJOrXMLzOwDUqXdoeg83MOTl3pvc_lYaZcS01CuQ,4983
64
- testgenie_py-0.3.5.dist-info/METADATA,sha256=807smKnDTnpuHb_jQCRBnvUIVIGTC2lcEIrJpFwVgVc,4350
65
- testgenie_py-0.3.5.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
66
- testgenie_py-0.3.5.dist-info/entry_points.txt,sha256=OUN4GqB4zHlHWwWGjwIPbur4E_ZqQgkeeqaCLhzRZgg,47
67
- testgenie_py-0.3.5.dist-info/RECORD,,
64
+ testgenie_py-0.3.6.dist-info/METADATA,sha256=xlCfruOtpEP9B_3vDzTxuJGnpzFmUkA2SkXunpxrLsI,4350
65
+ testgenie_py-0.3.6.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
66
+ testgenie_py-0.3.6.dist-info/entry_points.txt,sha256=OUN4GqB4zHlHWwWGjwIPbur4E_ZqQgkeeqaCLhzRZgg,47
67
+ testgenie_py-0.3.6.dist-info/RECORD,,