Skip to content

Commit 02ca70c

Browse files
committed
Fix docker command
1 parent 0fe67f2 commit 02ca70c

File tree

2 files changed

+9
-17
lines changed

2 files changed

+9
-17
lines changed

start

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ else
77
fi
88

99
if [[ "${1}" == "down" ]]; then
10-
docker-compose -f <(sed -e "s;%%VOLUME%%;${volume};g" docker-compose.tmpl.yml) down
10+
docker compose -f <(sed -e "s;%%VOLUME%%;${volume};g" docker-compose.tmpl.yml) down
1111
else
12-
docker-compose -f <(sed -e "s;%%VOLUME%%;${volume};g" docker-compose.tmpl.yml) up -d
12+
docker compose -f <(sed -e "s;%%VOLUME%%;${volume};g" docker-compose.tmpl.yml) up -d
1313
fi

testing/test_unit.py

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import importlib.resources
2-
import os
32
import sys
43
from pathlib import Path
54

6-
import pkg_resources
75
import pytest
86
from assertpy import assert_that
97

@@ -17,19 +15,13 @@ def run(pytester, path="report.html", cmd_flags=None):
1715

1816

1917
def file_content():
20-
try:
21-
return (
22-
importlib.resources.files("pytest_html")
23-
.joinpath("assets", "style.css")
24-
.read_bytes()
25-
.decode("utf-8")
26-
.strip()
27-
)
28-
except AttributeError:
29-
# Needed for python < 3.9
30-
return pkg_resources.resource_string(
31-
"pytest_html", os.path.join("assets", "style.css")
32-
).decode("utf-8")
18+
return (
19+
importlib.resources.files("pytest_html")
20+
.joinpath("assets", "style.css")
21+
.read_bytes()
22+
.decode("utf-8")
23+
.strip()
24+
)
3325

3426

3527
def test_duration_format_deprecation_warning(pytester):

0 commit comments

Comments
 (0)