Skip to content

Commit 1616434

Browse files
pre-commit-ci[bot]BeyondEvil
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e2e3b0a commit 1616434

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

src/pytest_html/nextgen.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
import datetime
22
import json
33
import os
4-
5-
import pytest
64
import re
75
import shutil
86

9-
from . import __version__
10-
from .util import cleanup_unserializable, get_scripts
11-
12-
from jinja2 import Environment, FileSystemLoader
13-
7+
import pytest
148
from _pytest.pathlib import Path
9+
from jinja2 import Environment
10+
from jinja2 import FileSystemLoader
11+
12+
from . import __version__
13+
from .util import cleanup_unserializable
14+
from .util import get_scripts
1515

1616

17-
class BaseReport(object):
17+
class BaseReport:
1818
def __init__(self, report_path, config):
1919
_plugin_path = os.path.dirname(__file__)
2020
self._report_absolute_path = Path(report_path).absolute()
@@ -124,7 +124,7 @@ def pytest_runtest_logreport(self, report):
124124

125125
class NextGenReport(BaseReport):
126126
def __init__(self, report_path, config):
127-
super(NextGenReport, self).__init__(report_path, config)
127+
super().__init__(report_path, config)
128128
self._assets_path = Path(self._report_path, "assets")
129129
self._assets_path.mkdir(parents=True, exist_ok=True)
130130
self._scripts_dest_path = Path(self._report_path, "scripts")
@@ -172,7 +172,7 @@ def _write_test_data(self):
172172

173173
class NextGenSelfContainedReport(BaseReport):
174174
def __init__(self, report_path, config):
175-
super(NextGenSelfContainedReport, self).__init__(report_path, config)
175+
super().__init__(report_path, config)
176176

177177
def _generate_report(self):
178178
self._template = self._read_template(

src/pytest_html/plugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
from . import extras # noqa: F401
1010
from .html_report import HTMLReport
11-
from .nextgen import NextGenReport, NextGenSelfContainedReport
11+
from .nextgen import NextGenReport
12+
from .nextgen import NextGenSelfContainedReport
1213

1314

1415
def pytest_addhooks(pluginmanager):

src/pytest_html/util.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import importlib
22
import json
33
import os
4-
54
from functools import lru_cache
6-
75
from typing import Any
86
from typing import Dict
97

0 commit comments

Comments
 (0)