From 95c2c26bd9bd2339f17f231b94089a020e26c84a Mon Sep 17 00:00:00 2001 From: DaniRafeh28 <daniel.rafeh@student.reutlingen-university.de> Date: Fri, 4 Apr 2025 19:35:27 +0200 Subject: [PATCH] 2 Tests failed - Report table adjusted --- .../stringCalculator.cpython-312.pyc | Bin 8083 -> 8083 bytes Project_Test/other/BerishaAlma/Feature6.py | 5 ++++- Project_Test/report.md | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Project_Test/__pycache__/stringCalculator.cpython-312.pyc b/Project_Test/__pycache__/stringCalculator.cpython-312.pyc index 3991daacbeef5440d4e799667d0c59a0c3e2214e..61e4a1e01dac0735a221262ea26b5505d66324ef 100644 GIT binary patch delta 19 ZcmbPiKiQt^G%qg~0}xCU-N@A`4*)V^1g8K1 delta 19 ZcmbPiKiQt^G%qg~0}yNx-pJJ{4*)YN1jqmY diff --git a/Project_Test/other/BerishaAlma/Feature6.py b/Project_Test/other/BerishaAlma/Feature6.py index 0f35297..247478e 100644 --- a/Project_Test/other/BerishaAlma/Feature6.py +++ b/Project_Test/other/BerishaAlma/Feature6.py @@ -1,5 +1,8 @@ from abc import ABC, abstractmethod import unittest +import sys +sys.path.append(r'C:\Users\HP\Downloads\ReportingService\ReportingService\Frontend\Neuer Ordner\Neuer Ordner\modern-dev-tdd-assignments') +from Project_Test.stringCalculator import StringCalculator as DaniCalc class IStringCalculator(ABC): @abstractmethod @@ -39,7 +42,7 @@ class StringCalculator(IStringCalculator): class TestStringCalculator(unittest.TestCase): def setUp(self): - self.calculator = StringCalculator() + self.calculator = DaniCalc() def test_empty_string(self): self.assertEqual(self.calculator.add(""), 0) diff --git a/Project_Test/report.md b/Project_Test/report.md index c647841..9322248 100644 --- a/Project_Test/report.md +++ b/Project_Test/report.md @@ -15,7 +15,7 @@ String Calculator - My Code tested with the other students testcases | Name | Interface break | Failed Testcases | |------------------|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | AliciMuhamed | no | 4 failed testcases (the tests expected a ValueError to be raised but it wasn´t - test_add_numbers_greater_1000_and_minus, test_add_numbers_with_custom_delimiter, test_multiple_negative_numbers_exception, test_negative_number_exception) | -| BerishaAlma | | | +| BerishaAlma | no | 2 failed testcases (the tests expected a ValueError to be raised but it wasn't - test_negative_number, test_multiple_negative_numbers) | | GotsisWasilios | | | | PikkemaatLasse | | | | YildirimHatice | | | -- GitLab