AirBnb is a..
A command interpreter to manipulate data without a visual interface, like in a Shell (perfect for development and debugging) for AirBnb Project
Functions to be perfomed by console
- Create your data model
- Manage (create, update, destroy, etc) objects via a console / command interpreter
- Store and persist objects to a file (JSON file)
Create a JSON storage engine to give abstration between “My object” and “How they are stored and persisted”.
Command interpreter
unittest
Data models and classes
Packages, modules and init.py
universally unique identifier (uuid)
chmod +x test_base_model.py; ./test_base_model.py
chmod +x test_base_model_dict.py; ./test_base_model_dict.py
pycodestyle models/base_model.py
models/base_model.py, models/init.py, tests/
chmod +x test_save_reload_base_model.py; ./test_save_reload_base_model.py
pycodestyle models/engine/file_storage.py pycodestyle models/init.py
models/engine/file_storage.py, models/engine/init.py, models/init.py, models/base_model.py, tests/
Check code formating pycodestyle console.py;
Run unittests using discovery python3 -m unittest discover tests
Run unittest in non-interactive mode echo "python3 -m unittest discover tests" | bash
python3 -m unittest discover tests; echo "python3 -m unittest discover tests" | bash