Created
December 16, 2018 01:58
-
-
Save zkan/352f13923c765d31991d23f0109d816f to your computer and use it in GitHub Desktop.
FizzBuzz test using Pytest with external plugin loading: conftest.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytest | |
@pytest.mark.parametrize('test_input, expected', [ | |
(3, 'Fizz'), | |
(6, 'Fizz'), | |
(5, 'Buzz'), | |
(10, 'Buzz'), | |
(15, 'FizzBuzz'), | |
(30, 'FizzBuzz'), | |
(2, 2), | |
(7, 7), | |
]) | |
def test_fizzbuzz(fizzbuzz, test_input, expected): | |
assert fizzbuzz.say(test_input) == expected |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment