-
Notifications
You must be signed in to change notification settings - Fork 59
Кайнов - Лабораторная работа #3 #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
In fact, real logger is just an extension of fake one
Лабораторная сделана по документу из курса https://github.com/UNN-VMK-Software/agile-course-practice/blob/master/docs/lab-3-logger-legacy.md, но хотелось бы заметить, что в случае Питона использование мок-объектов намного удобнее. Т.е. вместо написания фиктивного логгера, достаточно в тесте "мокнуть" реальный логгер и проверить, что определенный метод логгера был вызван с определенными параметрами. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
неудачное название функции "log"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Нет, стандартное название функции логгирования. См. документацию по стандартному logging
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
неопытному читателю не совсем понятно, что делает эта функция. Документация для искушенных.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Log - глагол,означающий "записывать"
Перед глаголом обычно ставится частица to: to_log() |
👍 |
Кайнов - Лабораторная работа #3
@TatianaKhanova @timonov @Ilyazykov @elenaPlankina @YusipovIgor @dmitryvodop, посмотрите, пожалуйста.