Skip to content

Commit 2c9298d

Browse files
committed
fixes tests
1 parent 5def0e9 commit 2c9298d

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
runs-on: ubuntu-latest
3434
environment:
3535
name: release
36-
url: https://pypi.org/project/pytest-env/${{ github.ref_name }}
36+
url: https://pypi.org/project/pytest-echo/${{ github.ref_name }}
3737
permissions:
3838
id-token: write
3939
steps:

CHANGELOG

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
---
33
* add support python 3.8..3.13
44
* add typing
5+
* add ini configuration support
56

67

78
1.8.1

tests/test_config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def test_toml_config(
6060
testdir: pytest.Testdir,
6161
toml: str,
6262
env: dict[str, str],
63-
expected: str,
63+
expected: str,
6464
) -> None:
6565
new_env = {
6666
**env,

tests/test_echo.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
ATTR_DICT = {"key": "value"}
1212
ATTR_LIST = [11, 12, 13, (21, 22)]
1313
ATTR_COMPOSITE = {"key1": "value1", "key2": [11, 12, 13, 14], "key3": 99}
14-
ATTR_SET = {11, 12, 13, (21, 22)}
14+
ATTR_SET = {11, 12, 13}
15+
1516

1617
class Dummy:
1718
attr = 1
@@ -93,7 +94,7 @@ def test_echo_attr_list(testdir: pytest.Testdir) -> None:
9394

9495
def test_echo_attr_set(testdir: pytest.Testdir) -> None:
9596
result = testdir.runpytest("--echo-attr=test_echo.ATTR_SET.2")
96-
result.stdout.fnmatch_lines([" test_echo.ATTR_SET.2: (21, 22)"])
97+
result.stdout.fnmatch_lines([" test_echo.ATTR_SET.2: 13"])
9798

9899

99100
def test_echo_attr_list_inner(testdir: pytest.Testdir) -> None:
@@ -103,8 +104,8 @@ def test_echo_attr_list_inner(testdir: pytest.Testdir) -> None:
103104

104105
def test_echo_attr_list_composite(testdir: pytest.Testdir) -> None:
105106
result = testdir.runpytest(
106-
"--echo-attr=test_echo.ATTR_COMPOSITE.key1",
107-
"--echo-attr=test_echo.ATTR_COMPOSITE.key2.3",
107+
"--echo-attr=test_echo.ATTR_COMPOSITE.key1",
108+
"--echo-attr=test_echo.ATTR_COMPOSITE.key2.3",
108109
)
109110
assert " test_echo.ATTR_COMPOSITE.key1: 'value1'" in result.stdout.lines
110111
assert " test_echo.ATTR_COMPOSITE.key2.3: 14" in result.stdout.lines

0 commit comments

Comments
 (0)