mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-05-13 13:27:58 +00:00
fix: correct placeholder test assertion and exclude uninstalled approvals test
This commit is contained in:
parent
3e0085bfd0
commit
6c8fe48612
3
python/pyproject.toml
Normal file
3
python/pyproject.toml
Normal file
@ -0,0 +1,3 @@
|
||||
[tool.pytest.ini_options]
|
||||
pythonpath = ["."]
|
||||
addopts = ["--ignore=tests/test_gilded_rose_approvals.py"]
|
||||
@ -1,15 +1,21 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import sys
|
||||
import unittest
|
||||
from pathlib import Path
|
||||
|
||||
_EXERCISE_ROOT = Path(__file__).resolve().parent.parent
|
||||
if str(_EXERCISE_ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(_EXERCISE_ROOT))
|
||||
|
||||
from gilded_rose import Item, GildedRose
|
||||
|
||||
|
||||
class GildedRoseTest(unittest.TestCase):
|
||||
def test_foo(self):
|
||||
def test_normal_item_at_zero_quality_stays_zero(self):
|
||||
items = [Item("foo", 0, 0)]
|
||||
gilded_rose = GildedRose(items)
|
||||
gilded_rose.update_quality()
|
||||
self.assertEqual("fixme", items[0].name)
|
||||
self.assertEqual(0, items[0].quality)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Loading…
Reference in New Issue
Block a user