Skip to content

Commit ed8caae

Browse files
committed
Format code
1 parent 4c1dca6 commit ed8caae

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

test/unit/nox/_package_check_test.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1-
import pytest
1+
import shutil
2+
from pathlib import Path
23
from unittest.mock import (
34
MagicMock,
45
patch,
56
)
7+
8+
import pytest
69
from nox.command import CommandFailed
7-
import shutil
8-
from pathlib import Path
910

10-
from exasol.toolbox.nox._package import package_check, PROJECT_CONFIG
1111
from exasol.toolbox.config import BaseConfig
12+
from exasol.toolbox.nox._package import (
13+
PROJECT_CONFIG,
14+
package_check,
15+
)
16+
1217

1318
class TestDistributionCheck:
1419
@staticmethod
@@ -28,7 +33,9 @@ def test_raises_non_zero_exist_with_readme_error(nox_session, tmp_path):
2833
shutil.copyfile(PROJECT_CONFIG.root / "README.rst", package_readme)
2934
shutil.copytree(PROJECT_CONFIG.root / "doc/changes", package / "doc/changes")
3035
shutil.copyfile(PROJECT_CONFIG.root / "LICENSE", package / "LICENSE")
31-
shutil.copyfile(PROJECT_CONFIG.root / "pyproject.toml", package / "pyproject.toml")
36+
shutil.copyfile(
37+
PROJECT_CONFIG.root / "pyproject.toml", package / "pyproject.toml"
38+
)
3239
old = "- `Python <https://www.python.org/>`__ >= 3.9"
3340
error = "- `Python <https://www.python.org/>`__ >= 3.9"
3441
readme = package_readme.read_text().splitlines()
@@ -42,4 +49,4 @@ def test_raises_non_zero_exist_with_readme_error(nox_session, tmp_path):
4249
print(PROJECT_CONFIG.root)
4350
package_check(nox_session)
4451
# verify broken with non-zero exit status
45-
assert str(e.value) == "Returned code 1"
52+
assert str(e.value) == "Returned code 1"

0 commit comments

Comments
 (0)