-
Notifications
You must be signed in to change notification settings - Fork 2
Code with tests #1
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
base: main
Are you sure you want to change the base?
Conversation
@@ -1,3 +1,5 @@ | |||
[](https://codecov.io/gh/OdintsovTim/level_2_2) | |||
|
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.
suggestion: бейдж из трэвиса тоже стоит добавить
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.
Зачем?) Как по мне, это точно не является обязательным, плашка о 100% покрытии уже гарант того, что на трэвисе все ок, иначе бы запрос не отправился бы
code/flake_master/run.py
Outdated
@argument('project_path', type=Path(exists=True)) | ||
@pass_context | ||
def upgrade(ctx, project_path): | ||
def upgrade_preset(ctx, project_path): |
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.
nitpick: upgrade не обязательно переименовывать, с ней нет таких проблем, как с setup
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.
] | ||
) | ||
def test_extract_preset_url(preset_name_or_url_or_path, presets_repo_url, preset_info, expected): | ||
assert extract_preset_url(preset_name_or_url_or_path, preset_info, presets_repo_url) == expected |
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.
nitpick: В функции еще идет проверка есть ли вообще preset_name_or_url_or_path, думаю, можно добавить случай, когда строка пустая
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.
|
||
|
||
def test_load_preset_from_url(mocker, flake8_preset_factory, row_config_data): | ||
response = mocker.patch('code.flake_master.utils.preset_fetchers.get', autospe=True) |
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.
nitpick: autospeC
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.
No description provided.