GildedRose-Refactoring-Kata/python/README.md
2025-06-23 22:37:26 +05:30

1.0 KiB

Gilded Rose starting position in Python

For exercise instructions see top level README

Suggestion: create a python virtual environment for this project. See the documentation

Run the pip install from the Command-Line for required dependencies

pip install -r requirements.txt

Run the unit tests from the Command-Line

pytest test_gilded_rose.py

Run the TextTest fixture from the Command-Line

For e.g. 10 days:

python texttest_fixture.py 10

You should make sure the command shown above works when you execute it in a terminal before trying to use TextTest (see below).

Run the TextTest approval test that comes with this project

There are instructions in the TextTest Readme for setting up TextTest. You will need to specify the Python executable and interpreter in config.gr. Uncomment these lines:

executable:${TEXTTEST_HOME}/python/texttest_fixture.py
interpreter:python