Last active
March 21, 2024 16:55
-
-
Save greenkey/8a17779ebca6164701819b7611f79696 to your computer and use it in GitHub Desktop.
An issue I just discovered
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 itertools | |
import pytest | |
def sum(a, b): | |
return a + b | |
def minimum(*numbers): | |
return min(numbers) | |
# Tests | |
@pytest.mark.parametrize("a, b", itertools.permutations([3, 4, 5], 2)) | |
class TestF: | |
def test_sum(self, a, b): | |
assert sum(a, b) == a + b | |
# This test will be skipped, why? | |
def test_minimum(self, a, b): | |
assert minimum(a, b) == min(a, b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment