Clean up extraneous files in tests

This commit is contained in:
Alex Stokes 2019-08-02 14:54:40 -07:00
parent 224b54ad93
commit d47cddee24
No known key found for this signature in database
GPG Key ID: 51CE1721B245C086
2 changed files with 0 additions and 12 deletions

View File

@ -1 +0,0 @@
pytest gathers tests according to a naming convention. By default any file that is to contain tests must be named starting with test_ and any function in a file that should be treated as a test must also start with test_.

View File

@ -1,11 +0,0 @@
import pytest
@pytest.mark.parametrize("test_input,expected", [("3+5", 8), ("2+4", 6), ("6*9", 54)])
def test_eval(test_input, expected):
assert eval(test_input) == expected
@pytest.mark.parametrize("test_input,expected", [("3+5", 8), ("2+4", 6), ("6*5", 30)])
def test_eval2(test_input, expected):
assert eval(test_input) == expected