Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(8152)

Issue 232370043: Ostrovsky Lev - 4

Can't Edit
Can't Publish+Mail
Start Review
Created:
8 years, 11 months ago by LevSky93
Modified:
8 years, 11 months ago
Reviewers:
shad.python
Visibility:
Public.

Patch Set 1 #

Total comments: 16

Patch Set 2 : "changes" #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+285 lines, -0 lines) Patch
M main.py View 1 chunk +285 lines, -0 lines 2 comments Download

Messages

Total messages: 4
LevSky93
Высылаю код по 4 заданию. Юнит-тесты, файл получения отчета, и другие файлы послал в архиве ...
8 years, 11 months ago (2015-05-12 11:53:31 UTC) #1
shad.python
Замечания нужно поправить, тесты в исходном архиве не запускаются из-за захардкоженных путей к конфигу, это ...
8 years, 11 months ago (2015-05-25 18:42:46 UTC) #2
LevSky93
Высылаю исправленную версию. https://codereview.appspot.com/232370043/diff/1/main.py File main.py (right): https://codereview.appspot.com/232370043/diff/1/main.py#newcode9 main.py:9: # Generate_Discrete_Distribution On 2015/05/25 18:42:46, shad.python ...
8 years, 11 months ago (2015-06-03 12:02:34 UTC) #3
shad.python
8 years, 11 months ago (2015-06-05 16:41:25 UTC) #4
Неужели даже не запускаете перед тем как отправить? (

--
Григорий Носырев

https://codereview.appspot.com/232370043/diff/20001/main.py
File main.py (right):

https://codereview.appspot.com/232370043/diff/20001/main.py#newcode1
main.py:1: # -*- coding: utf-8 -*-
Юнит тесты до сих пор падают:

PS C:\Users\nosyrev\Downloads\python_dz4\HW-4\HW-4> python .\test_main.py
.....EE..
======================================================================
ERROR: test_1 (__main__.test_ocean)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".\test_main.py", line 61, in test_1
    ocean = main.Ocean(CONFIG_PATH)
  File "C:\Users\nosyrev\Downloads\python_dz4\HW-4\HW-4\main.py", line 125, in _
_init__
    size = self.get_size()
  File "C:\Users\nosyrev\Downloads\python_dz4\HW-4\HW-4\main.py", line 161, in g
et_size
    return int(self.cfgParser.get('Ocean', 'size'))
  File "C:\Python27\lib\ConfigParser.py", line 607, in get
    raise NoSectionError(section)
NoSectionError: No section: 'Ocean'

======================================================================
ERROR: test_2 (__main__.test_ocean)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".\test_main.py", line 78, in test_2
    ocean = main.Ocean(CONFIG_PATH)
  File "C:\Users\nosyrev\Downloads\python_dz4\HW-4\HW-4\main.py", line 125, in _
_init__
    size = self.get_size()
  File "C:\Users\nosyrev\Downloads\python_dz4\HW-4\HW-4\main.py", line 161, in g
et_size
    return int(self.cfgParser.get('Ocean', 'size'))
  File "C:\Python27\lib\ConfigParser.py", line 607, in get
    raise NoSectionError(section)
NoSectionError: No section: 'Ocean'

----------------------------------------------------------------------
Ran 9 tests in 0.067s

FAILED (errors=2)

https://codereview.appspot.com/232370043/diff/20001/main.py#newcode285
main.py:285: #main()
Теперь код вообще не запускается) Поправьте
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b