Changed styling of test file

This commit is contained in:
HomieOmie 2023-05-06 18:59:12 -04:00
parent ac3cb751a3
commit d783aca221
3 changed files with 8 additions and 24 deletions

View File

@ -10,13 +10,13 @@ build-backend = "setuptools.build_meta"
write_to = "src/_pytest/_version.py" write_to = "src/_pytest/_version.py"
[tool.pytest.ini_options] [tool.pytest.ini_options]
minversion = "2.0" minversion = "0.1.dev14957+gac3cb75.d20230506"
addopts = "-rfEX -p pytester --strict-markers" addopts = "-rfEX -p pytester --strict-markers"
python_files = ["test_*.py", "*_test.py", "testing/python/*.py"] python_files = ["test_*.py", "*_test.py", "testing/python/*.py"]
python_classes = ["Test", "Acceptance"] python_classes = ["Test", "Acceptance"]
python_functions = ["test"] python_functions = ["test"]
# NOTE: "doc" is not included here, but gets tested explicitly via "doctesting". # NOTE: "doc" is not included here, but gets tested explicitly via "doctesting".
testpaths = ["testing"] testpaths = ["testing/examples/my_test.py"]
norecursedirs = ["testing/example_scripts"] norecursedirs = ["testing/example_scripts"]
xfail_strict = true xfail_strict = true
filterwarnings = [ filterwarnings = [

View File

@ -1,22 +0,0 @@
def test_():
m = [
"This is some dummy test which shows the strange way in which Pycharm"
" displays the full diff."
]
assert m == []
def test2_():
m = [
"This is another check"
" This line and the line above should be fine"
"Same with this line"
"But we should not see the '- ,' appear"
"But rather we should see a '- []' appear"
]
assert [] == m
# def test3_():
# m = ["This is some dummy test which shows the strange way in which Pycharm"]
# assert m == []

View File

@ -0,0 +1,6 @@
def test_():
m = [
"This is some dummy test which shows the strange way in which Pycharm"
" displays the full diff."
]
assert m == []