Skip to content

Commit 8e94e32

Browse files
jcs-instructorgregorrieglernitsanavni4dsherwoodmander11
committed
- F accept a different rule for Fizz
Co-Authored-By: Gregor Riegler <rieglerg85@gmail.com> 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: Matt <matthew.anderson11@gmail.com>
1 parent e468dbf commit 8e94e32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

katas/fizzbuzz/test_fizzbuzz.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,9 @@ def fizzbuzz_fn(number):
5959
word = db.fizzbuzz_rules.find_one({"divisor": divisor})["word"]
6060
if number == divisor:
6161
return word
62-
return "Fizz"
62+
return db.fizzbuzz_rules.find_one({"divisor": 3})["word"]
6363
return fizzbuzz_fn
6464

65-
6665
# ----------------------------------------------------------
6766

6867
def test_fizzbuzz(fizzbuzz_db):
@@ -77,10 +76,11 @@ def test_buzz(fizzbuzz_db):
7776

7877
def test_wow_instead_of_fizz(fizzbuzz_db):
7978
rules = fizzbuzz_db.fizzbuzz_rules
80-
# rules.delete_many(filter={})
79+
rules.delete_many(filter={})
8180
rules.insert_many(
8281
[
8382
{"word": "Wow", "divisor": 3},
83+
{"word": "Bang", "divisor": 5},
8484
]
8585
)
8686
fizzbuzz_fn = make_fizzbuzz(fizzbuzz_db)

0 commit comments

Comments
 (0)