Skip to content

task4#3

Open
cripson1994 wants to merge 2 commits intopvktk:waiting_reviewfrom
cripson1994:ha4
Open

task4#3
cripson1994 wants to merge 2 commits intopvktk:waiting_reviewfrom
cripson1994:ha4

Conversation

@cripson1994
Copy link
Copy Markdown

@cripson1994 cripson1994 commented Apr 12, 2018

Архитектура очень простенькая и понятная (как и должно быть с кодом на python). Проблем разобраться что-куда надо вставлять вообще не было.

Copy link
Copy Markdown

@yurii-litvinov yurii-litvinov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ок, зачтена

Comment thread hw01_cli/cli.py
def run_on(self, pipe_arg, arglist):
raise Exception('exit')

#Команда 'cd'.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В Питоне комментарии к классам лучше писать докстрингами: https://www.python.org/dev/peps/pep-0257/

Comment thread hw01_cli/cli_unittest.py
self.le.exec_line('cd test')
r = self.le.exec_line('ls')
self.assertEqual(r, 'test2\n')
self.le.exec_line('cd ..')
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

И лучше разбивать бьольшие тесты на кучу маленьких, принцип независимости тестов же. Тут если вначале что-то пошло не так, остальные тест кейсы даже исполняться не будут

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants