Skip to content

Commit

Permalink
python/protein-translation: 2nd iteration - fix enum docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
vpayno committed Apr 27, 2024
1 parent 7bac9b7 commit 3b4435c
Show file tree
Hide file tree
Showing 5 changed files with 128 additions and 126 deletions.
2 changes: 1 addition & 1 deletion python/protein-translation/.coverage
Original file line number Diff line number Diff line change
@@ -1 +1 @@
!coverage.py: This is a private format, don't read it directly!{"arcs":{"/home/vpayno/git_vpayno/exercism-workspace/python/protein-translation/test/__init__.py":[[0,0],[0,-1]],"/home/vpayno/git_vpayno/exercism-workspace/python/protein-translation/protein_translation.py":[[0,1],[1,3],[3,4],[4,5],[5,7],[7,10],[10,10],[10,11],[11,12],[12,13],[13,14],[14,15],[15,16],[16,17],[17,18],[18,-10],[10,21],[21,22],[22,23],[23,24],[24,25],[25,26],[26,28],[28,29],[29,28],[28,30],[30,28],[28,31],[31,28],[28,32],[32,28],[28,33],[33,28],[28,34],[34,28],[28,35],[35,28],[28,36],[36,28],[28,37],[37,28],[28,38],[38,28],[28,39],[39,28],[28,40],[40,28],[28,41],[41,28],[28,42],[42,28],[28,43],[43,28],[28,44],[44,28],[28,45],[45,28],[28,49],[49,-1],[49,60],[60,62],[62,65],[65,68],[68,70],[70,72],[72,76],[76,77],[77,79],[79,81],[81,84],[84,76],[76,86],[86,-49],[81,82],[82,86]]}}
!coverage.py: This is a private format, don't read it directly!{"arcs":{"/home/vpayno/git_vpayno/exercism-workspace/python/protein-translation/test/__init__.py":[[0,0],[0,-1]],"/home/vpayno/git_vpayno/exercism-workspace/python/protein-translation/protein_translation.py":[[0,1],[1,3],[3,4],[4,5],[5,7],[7,10],[10,10],[10,11],[11,13],[13,14],[14,15],[15,16],[16,17],[17,18],[18,19],[19,20],[20,-10],[10,23],[23,24],[24,25],[25,26],[26,27],[27,28],[28,30],[30,31],[31,30],[30,32],[32,30],[30,33],[33,30],[30,34],[34,30],[30,35],[35,30],[30,36],[36,30],[30,37],[37,30],[30,38],[38,30],[30,39],[39,30],[30,40],[40,30],[30,41],[41,30],[30,42],[42,30],[30,43],[43,30],[30,44],[44,30],[30,45],[45,30],[30,46],[46,30],[30,47],[47,30],[30,51],[51,-1],[51,62],[62,64],[64,67],[67,70],[70,72],[72,74],[74,78],[78,79],[79,81],[81,83],[83,86],[86,78],[78,88],[88,-51],[83,84],[84,88]]}}
36 changes: 18 additions & 18 deletions python/protein-translation/.coverage.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" ?>
<coverage branch-rate="0.7" branches-covered="7" branches-valid="10" complexity="0" line-rate="0.8947" lines-covered="34" lines-valid="38" timestamp="1714183479610" version="4.5.4">
<coverage branch-rate="0.7" branches-covered="7" branches-valid="10" complexity="0" line-rate="0.8947" lines-covered="34" lines-valid="38" timestamp="1714183983208" version="4.5.4">
<!-- Generated by coverage.py: https://coverage.readthedocs.io -->
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
<sources>
Expand All @@ -17,38 +17,38 @@
<line hits="1" number="5"/>
<line hits="1" number="7"/>
<line hits="1" number="10"/>
<line hits="1" number="11"/>
<line hits="1" number="12"/>
<line hits="1" number="13"/>
<line hits="1" number="14"/>
<line hits="1" number="15"/>
<line hits="1" number="16"/>
<line hits="1" number="17"/>
<line hits="1" number="18"/>
<line hits="1" number="21"/>
<line hits="1" number="22"/>
<line hits="1" number="19"/>
<line hits="1" number="20"/>
<line hits="1" number="23"/>
<line hits="1" number="24"/>
<line hits="1" number="25"/>
<line hits="1" number="26"/>
<line hits="1" number="27"/>
<line hits="1" number="28"/>
<line hits="1" number="49"/>
<line hits="1" number="60"/>
<line branch="true" condition-coverage="50% (1/2)" hits="1" missing-branches="63" number="62"/>
<line hits="0" number="63"/>
<line branch="true" condition-coverage="50% (1/2)" hits="1" missing-branches="66" number="65"/>
<line hits="0" number="66"/>
<line hits="1" number="68"/>
<line hits="1" number="30"/>
<line hits="1" number="51"/>
<line hits="1" number="62"/>
<line branch="true" condition-coverage="50% (1/2)" hits="1" missing-branches="65" number="64"/>
<line hits="0" number="65"/>
<line branch="true" condition-coverage="50% (1/2)" hits="1" missing-branches="68" number="67"/>
<line hits="0" number="68"/>
<line hits="1" number="70"/>
<line branch="true" condition-coverage="50% (1/2)" hits="1" missing-branches="73" number="72"/>
<line hits="0" number="73"/>
<line branch="true" condition-coverage="100% (2/2)" hits="1" number="76"/>
<line hits="1" number="77"/>
<line hits="1" number="72"/>
<line branch="true" condition-coverage="50% (1/2)" hits="1" missing-branches="75" number="74"/>
<line hits="0" number="75"/>
<line branch="true" condition-coverage="100% (2/2)" hits="1" number="78"/>
<line hits="1" number="79"/>
<line branch="true" condition-coverage="100% (2/2)" hits="1" number="81"/>
<line hits="1" number="82"/>
<line hits="1" number="81"/>
<line branch="true" condition-coverage="100% (2/2)" hits="1" number="83"/>
<line hits="1" number="84"/>
<line hits="1" number="86"/>
<line hits="1" number="88"/>
</lines>
</class>
</classes>
Expand Down
2 changes: 2 additions & 0 deletions python/protein-translation/protein_translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@


class Proteins(Enum):
"""Protein Enum"""

METHIONINE = enum_auto()
PHENYLALANINE = enum_auto()
LEUCINE = enum_auto()
Expand Down
2 changes: 2 additions & 0 deletions python/protein-translation/protein_translation.py,cover
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@


> class Proteins(Enum):
> """Protein Enum"""

> METHIONINE = enum_auto()
> PHENYLALANINE = enum_auto()
> LEUCINE = enum_auto()
Expand Down
Loading

0 comments on commit 3b4435c

Please sign in to comment.