mirror of
https://github.com/fedora-python/tox-current-env.git
synced 2024-12-23 16:46:14 +01:00
Fix tests
This commit is contained in:
parent
5d5286d4f0
commit
f5beafc38c
1
.github/workflows/main.yaml
vendored
1
.github/workflows/main.yaml
vendored
@ -24,7 +24,6 @@ jobs:
|
||||
# Generate it by: tox -l | sed "s/^/- /"
|
||||
- py36-tox324
|
||||
- py36-tox3
|
||||
- py36-tox4
|
||||
- py37-tox324
|
||||
- py37-tox3
|
||||
- py37-tox4
|
||||
|
@ -240,7 +240,7 @@ def test_print_extras_to_file(toxenv, tmp_path):
|
||||
def test_allenvs_print_deps_to_file(tmp_path, option):
|
||||
depspath = tmp_path / "deps"
|
||||
result = tox(option, str(depspath))
|
||||
assert depspath.read_text().splitlines() == ["six", "py"] * 5
|
||||
assert depspath.read_text().splitlines() == ["six", "py"] * len(envs_from_tox_ini())
|
||||
expected = textwrap.dedent(
|
||||
f"""
|
||||
{tox_footer()}
|
||||
@ -253,7 +253,7 @@ def test_allenvs_print_deps_to_file(tmp_path, option):
|
||||
def test_allenvs_print_extras_to_file(tmp_path, option):
|
||||
extraspath = tmp_path / "extras"
|
||||
result = tox(option, str(extraspath))
|
||||
assert extraspath.read_text().splitlines() == ["dev", "full"] * 5
|
||||
assert extraspath.read_text().splitlines() == ["dev", "full"] * len(envs_from_tox_ini())
|
||||
expected = textwrap.dedent(
|
||||
f"""
|
||||
{tox_footer()}
|
||||
|
2
tox.ini
2
tox.ini
@ -2,7 +2,7 @@
|
||||
|
||||
# This information is repeated in .github/workflows/main.yaml
|
||||
# (see https://github.com/fedora-python/tox-github-action/issues/8)
|
||||
envlist = {py36,py37,py38,py39,py310,py311}-tox{324,3,4}
|
||||
envlist = py36-tox{324,3},{py37,py38,py39,py310,py311}-tox{324,3,4}
|
||||
|
||||
[testenv]
|
||||
extras =
|
||||
|
Loading…
Reference in New Issue
Block a user