Skip to content

Commit 5a6ba3a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 07136f3 commit 5a6ba3a

File tree

5 files changed

+6
-21
lines changed

5 files changed

+6
-21
lines changed

server/autotest_server/testers/jupyter/schema.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from msgspec import Meta, Struct
77
from markus_autotesting_core.types import AutotestFile, BaseTestData, BaseTesterSettings
88

9-
109
PYTHON_VERSIONS = [f"3.{x}" for x in range(11, 14) if shutil.which(f"python3.{x}")]
1110
PythonVersion = Enum("PythonVersion", {v.replace(".", "_"): v for v in PYTHON_VERSIONS})
1211

server/autotest_server/testers/py/lib/c_helper.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from typing import Optional, List
1010
import unittest
1111

12-
1312
DEFAULT_LTRACE_LOG_FILE = "ltrace_log.txt"
1413
DEFAULT_GCC_FLAGS = ["-std=gnu99", "-Wall", "-g"]
1514
DEFAULT_LTRACE_FLAGS = ["-f", "-n", "2", "-o", DEFAULT_LTRACE_LOG_FILE]

server/autotest_server/testers/py/schema.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from msgspec import Meta, Struct
77
from markus_autotesting_core.types import BaseTestData, BaseTesterSettings
88

9-
109
PYTHON_VERSIONS = [f"3.{x}" for x in range(11, 14) if shutil.which(f"python3.{x}")]
1110
PythonVersion = Enum("PythonVersion", {v.replace(".", "_"): v for v in PYTHON_VERSIONS})
1211

server/autotest_server/tests/testers/py/test_py_tester.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
def test_success(request, monkeypatch) -> None:
77
"""Test that when a test succeeds, it is added to the results."""
88
monkeypatch.chdir(request.fspath.dirname)
9-
tester = PyTester(
10-
specs=TestSpecs.from_json(
11-
"""
9+
tester = PyTester(specs=TestSpecs.from_json("""
1210
{
1311
"test_data": {
1412
"script_files": ["fixtures/sample_tests_success.py"],
@@ -22,9 +20,7 @@ def test_success(request, monkeypatch) -> None:
2220
}
2321
}
2422
}
25-
"""
26-
)
27-
)
23+
"""))
2824
results = tester.run_python_tests()
2925
assert len(results) == 1
3026
assert "fixtures/sample_tests_success.py" in results
@@ -41,9 +37,7 @@ def test_success(request, monkeypatch) -> None:
4137
def test_skip(request, monkeypatch) -> None:
4238
"""Test that when a test is skipped, it is omitted from the results."""
4339
monkeypatch.chdir(request.fspath.dirname)
44-
tester = PyTester(
45-
specs=TestSpecs.from_json(
46-
"""
40+
tester = PyTester(specs=TestSpecs.from_json("""
4741
{
4842
"test_data": {
4943
"script_files": ["fixtures/sample_tests_skip.py"],
@@ -57,8 +51,6 @@ def test_skip(request, monkeypatch) -> None:
5751
}
5852
}
5953
}
60-
"""
61-
)
62-
)
54+
"""))
6355
results = tester.run_python_tests()
6456
assert results == {"fixtures/sample_tests_skip.py": []}

server/autotest_server/tests/testers/r/test_r_tester.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ def test_success_with_context(request, monkeypatch):
2626
mock_process.stderr = ""
2727

2828
with patch("subprocess.run", return_value=mock_process):
29-
tester = RTester(
30-
specs=TestSpecs.from_json(
31-
"""
29+
tester = RTester(specs=TestSpecs.from_json("""
3230
{
3331
"test_data": {
3432
"script_files": ["fixtures/sample_tests_success.R"],
@@ -40,9 +38,7 @@ def test_success_with_context(request, monkeypatch):
4038
}
4139
}
4240
}
43-
"""
44-
)
45-
)
41+
"""))
4642

4743
results = tester.run_r_tests()
4844

0 commit comments

Comments
 (0)