Skip to content

Commit

Permalink
テストとコメントの修正
Browse files Browse the repository at this point in the history
  • Loading branch information
fono09 committed Mar 5, 2022
1 parent d89cdfb commit 52b4b12
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions library/omikuji.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test(self):

class Omikuji:
"""
おみくじのメイン処理
おみくじのコアロジック
ガチャではないので排出率を公開するメソッドはあえて実装されていない
"""

Expand Down Expand Up @@ -73,7 +73,7 @@ def draw(self):


"""
おみくじメイン処理
以下おみくじの設定
"""


Expand All @@ -99,8 +99,15 @@ class OmikujiResults(AbstractOmikujiResults):


def test():
"""
おみくじの設定テスト
"""

omikuji.test()


def draw():
"""
おみくじ抽選
"""
return omikuji.draw().message
4 changes: 2 additions & 2 deletions tests/library/test_omikuji.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ class TestOmikuji(unittest.TestCase):
おみくじのテスト
"""

def test_omikuji_config:
def test_omikuji_config(self):
"""
おみくじの設定が正常か
"""
test()

def test_omikuji_minimum:
def test_omikuji_minimum(self):
"""
おみくじの実装が正常か
"""
Expand Down

0 comments on commit 52b4b12

Please sign in to comment.