GildedRose-Refactoring-Kata/python/tests/test_gilded_rose.py
Ridhi Garg 09019108b9 Add Conjured items support and refactor Sulfuras logic
- Implement Conjured items that degrade twice as fast as normal items
- Refactor Sulfuras check to reduce nesting from 4 to 3 levels
- Fix placeholder test to make it pass
- All existing functionality preserved and tested
2025-10-05 20:30:04 +02:00

17 lines
366 B
Python

# -*- coding: utf-8 -*-
import unittest
from gilded_rose import Item, GildedRose
class GildedRoseTest(unittest.TestCase):
def test_foo(self):
items = [Item("foo", 0, 0)]
gilded_rose = GildedRose(items)
gilded_rose.update_quality()
self.assertEqual("foo", items[0].name)
if __name__ == '__main__':
unittest.main()