Skip to content

Conversation

@cripson1994
Copy link

@cripson1994 cripson1994 commented Apr 12, 2018

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

Copy link

@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.

Ок, зачтена

def run_on(self, pipe_arg, arglist):
raise Exception('exit')

#Команда 'cd'.

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/

self.le.exec_line('cd test')
r = self.le.exec_line('ls')
self.assertEqual(r, 'test2\n')
self.le.exec_line('cd ..')

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