- Python 3.10 or higher
- Pytest (for running tests)
Clone this repository:
git clone https://github.com/jjiikoo/Library-demo.gitTo run tests, install pytest:
pip install pytestRun the application by providing a database file:
python library.py <filename>If the file doesn't exist, it will be created automatically.
The database is a simple [text] file with each book on a separate line in the following format:
Title/Writer/ISBN-13/Publishing-year
# Run all tests
pytestlibrary.py- Main applicationtest_library.py- Tests