Skip to content

Commit d6470ab

Browse files
committed
project:fix
1 parent 774cd0d commit d6470ab

File tree

5 files changed

+18
-17
lines changed

5 files changed

+18
-17
lines changed

exasol/toolbox/nox/_artifacts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import shutil
21
import json
32
import pathlib
43
import re
4+
import shutil
55
import sqlite3
66
import sys
77
from pathlib import Path

test/unit/artifacts_test.py

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1-
import pytest
21
import contextlib
3-
from dataclasses import dataclass
4-
from pathlib import Path
52
import re
3+
from dataclasses import dataclass
64
from inspect import cleandoc
7-
from unittest.mock import Mock, patch, call
5+
from pathlib import Path
6+
from unittest.mock import (
7+
Mock,
8+
call,
9+
patch,
10+
)
11+
12+
import pytest
13+
814
from exasol.toolbox.nox._artifacts import copy_artifacts
915

1016

@@ -34,7 +40,7 @@ def test_missing_files(tmp_path, capsys):
3440
),
3541
captured.err,
3642
)
37-
#with capsys.disabled():
43+
# with capsys.disabled():
3844
# print(captured.err)
3945

4046

@@ -44,6 +50,7 @@ class endswith:
4450
Assert that the str representation of the argument ends with the
4551
specfied suffix.
4652
"""
53+
4754
suffix: str
4855

4956
def __eq__(self, actual):
@@ -58,12 +65,12 @@ def test_all_files(tmp_path, capsys):
5865
"coverage-python9.9-slow/.coverage",
5966
"lint-python9.9/.lint.txt",
6067
"lint-python9.9/.lint.json",
61-
"security-python9.9/.security.json"
68+
"security-python9.9/.security.json",
6269
) as session:
6370
copy_artifacts(session)
6471

6572
captured = capsys.readouterr()
66-
assert session.run.call_args == call (
73+
assert session.run.call_args == call(
6774
"coverage",
6875
"combine",
6976
"--keep",

test/unit/nox/_package_version_test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
write_version_module,
99
)
1010
from exasol.toolbox.util.version import Version
11-
from noxconfig import (
12-
Config,
13-
)
11+
from noxconfig import Config
1412

1513
DEFAULT_VERSION = Version(major=0, minor=1, patch=0)
1614
ALTERNATE_VERSION = Version(major=0, minor=2, patch=0)

test/unit/util/dependencies/licenses_test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
_packages_from_json,
88
packages_to_markdown,
99
)
10-
from exasol.toolbox.util.dependencies.poetry_dependencies import (
11-
PoetryGroup,
12-
)
10+
from exasol.toolbox.util.dependencies.poetry_dependencies import PoetryGroup
1311
from exasol.toolbox.util.dependencies.shared_models import Package
1412

1513
MAIN_GROUP = PoetryGroup(name="main", toml_section="project.dependencies")

test/unit/util/version_test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import subprocess
2-
from unittest.mock import (
3-
patch,
4-
)
2+
from unittest.mock import patch
53

64
import pytest
75

0 commit comments

Comments
 (0)