From c05c6fb000dc22c18d8d9d14df98250e00bc7449 Mon Sep 17 00:00:00 2001 From: DaniRafeh28 <daniel.rafeh@student.reutlingen-university.de> Date: Sat, 5 Apr 2025 13:37:07 +0200 Subject: [PATCH] 2 fails - Report adjusted - The first table was adjusted too --- Project_Test/other/YildirimHatice/feature6.py | 5 ++++- Project_Test/report.md | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Project_Test/other/YildirimHatice/feature6.py b/Project_Test/other/YildirimHatice/feature6.py index 949c324..655131b 100644 --- a/Project_Test/other/YildirimHatice/feature6.py +++ b/Project_Test/other/YildirimHatice/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 5bbad92..555430e 100644 --- a/Project_Test/report.md +++ b/Project_Test/report.md @@ -6,7 +6,7 @@ String Calculator - Other Students Codes tested with my testcases | BerishaAlma | yes (9) | none | | GotsisWasilios | yes (8) | none | | PikkemaatLasse | yes (8) | none | -| YildirimHatice | | | +| YildirimHatice | yes (9) | none | | WeishauptOrlando | yes (6) | none | | SerchimoMarvin | yes (6) | none | @@ -18,6 +18,6 @@ String Calculator - My Code tested with the other students testcases | 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 | no | 2 failed testcases ( the test expected a ValueError to be raised but it wasn't - test_add_exception, test_add_negative_numbers) | | PikkemaatLasse | yes (1) | 2 failed testcases ( again ValueError expected - test_add_single_negative_number, test_add_multiple_negative_numbers) | -| YildirimHatice | | | +| YildirimHatice | no | 2 failed testcases ( again ValueError expected - test_negative_number, test_multiple_negative_numbers) | | WeishauptOrlando | | | | SerchimoMarvin | | | \ No newline at end of file -- GitLab