Skip to content

Commit 4ac8038

Browse files
[pre-commit.ci] pre-commit autoupdate (#62)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent dad3545 commit 4ac8038

File tree

5 files changed

+26
-8
lines changed

5 files changed

+26
-8
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
exclude: '^($|.*\.bin)'
22
repos:
3-
- repo: https://github.com/ambv/black
4-
rev: 19.10b0
3+
- repo: https://github.com/psf/black
4+
rev: 21.5b2
55
hooks:
66
- id: black
77
args: [--safe, --quiet]
88
language_version: python3.7
99
- repo: https://github.com/pre-commit/pre-commit-hooks
10-
rev: v2.5.0
10+
rev: v4.0.1
1111
hooks:
1212
- id: trailing-whitespace
1313
- id: end-of-file-fixer

setup.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@
77
setup_requires=["setuptools_scm"],
88
packages=["pytest_cpp"],
99
package_dir={"": "src"},
10-
entry_points={"pytest11": ["cpp = pytest_cpp.plugin"],},
11-
install_requires=["pytest !=5.4.0, !=5.4.1", "colorama",],
10+
entry_points={
11+
"pytest11": ["cpp = pytest_cpp.plugin"],
12+
},
13+
install_requires=[
14+
"pytest !=5.4.0, !=5.4.1",
15+
"colorama",
16+
],
1217
python_requires=">=3.6",
1318
# metadata for upload to PyPI
1419
author="Bruno Oliveira",

src/pytest_cpp/catch2.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,13 @@ def _parse_xml(self, xml_filename):
132132
fail_msg = "Expected: {expected}\nActual: {actual}".format(
133133
expected=expected, actual=actual
134134
)
135-
failures.append((file_name, line_num, fail_msg,))
135+
failures.append(
136+
(
137+
file_name,
138+
line_num,
139+
fail_msg,
140+
)
141+
)
136142
skipped = False # TODO: skipped tests don't appear in the results
137143
result.append((test_name, failures, skipped))
138144

tests/acceptance/test_boosttest_samples.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,9 @@ def test_example_11(exes, testdir):
3838
example = "boosttest-samples/unit_test_example_11"
3939
result = testdir.runpytest(exes.get(example))
4040
result.stdout.fnmatch_lines(
41-
["*something happened*", "*check s.substr*", "*1 failed in*",]
41+
[
42+
"*something happened*",
43+
"*check s.substr*",
44+
"*1 failed in*",
45+
]
4246
)

tests/test_pytest_cpp.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,10 @@ def test_cpp_files_option(testdir, exes):
297297
)
298298
result = testdir.runpytest("--collect-only")
299299
result.stdout.fnmatch_lines(
300-
["*CppFile boost_success*", "*CppFile gtest*",]
300+
[
301+
"*CppFile boost_success*",
302+
"*CppFile gtest*",
303+
]
301304
)
302305

303306

0 commit comments

Comments
 (0)