From 45c7cd85c694fcc63d563a3a07ffb231dd0b6f12 Mon Sep 17 00:00:00 2001 From: aymanchtiar Date: Thu, 20 Nov 2025 21:09:14 +0000 Subject: [PATCH] final cleaned code with polymorphic classes to handle regular items and special items , i add a function for a new item which is called kitkat --- python/tests/test_gilded_rose_approvals.py | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 python/tests/test_gilded_rose_approvals.py diff --git a/python/tests/test_gilded_rose_approvals.py b/python/tests/test_gilded_rose_approvals.py deleted file mode 100644 index 6c8f9db9..00000000 --- a/python/tests/test_gilded_rose_approvals.py +++ /dev/null @@ -1,21 +0,0 @@ -import io -import sys - -from approvaltests import verify -from texttest_fixture import main - -def test_gilded_rose_approvals(): - orig_sysout = sys.stdout - try: - fake_stdout = io.StringIO() - sys.stdout = fake_stdout - sys.argv = ["texttest_fixture.py", 30] - main() - answer = fake_stdout.getvalue() - finally: - sys.stdout = orig_sysout - - verify(answer) - -if __name__ == "__main__": - test_gilded_rose_approvals() \ No newline at end of file