Skip to content

Commit 69b54b7

Browse files
jcs-instructornitsanavni4dsherwoodkevinmaesmander11
committed
. t Add todo comments to move production code out of test file
Co-Authored-By: Nitsan Avni <nitsanav@gmail.com> Co-Authored-By: Joel Silberman <42779942+jcs-instructor@users.noreply.github.com> Co-Authored-By: 4dsherwood <4dsherwood@users.noreply.github.com> Co-Authored-By: Kevin Maes <kevin@kevinmaes.com> Co-Authored-By: Matt <matthew.anderson11@gmail.com>
1 parent c0e06d6 commit 69b54b7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

katas/fizzbuzz/test_fizzbuzz.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,16 @@ def test_fizz_divisor_is_3(fizzbuzz_db):
4848
def test_buzz_divisor_is_5(fizzbuzz_db):
4949
assert fizzbuzz_db.fizzbuzz_rules.find_one({"word": "Buzz"})["divisor"] == 5
5050

51+
# ----------------------------------------------------------
52+
# todo: move this production code to another file later:
5153
FizzbuzzFn = Callable[[int], str]
5254

55+
# todo: move this production code to another file later:
5356
def make_fizzbuzz(db) -> FizzbuzzFn:
5457
def fizzbuzz_fn(number):
5558
return "Fizz"
5659
return fizzbuzz_fn
60+
# ----------------------------------------------------------
5761

5862
def test_fizzbuzz(fizzbuzz_db):
5963
fizzbuzz_fn = make_fizzbuzz(fizzbuzz_db)

0 commit comments

Comments
 (0)