-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added simple test case for plugin invocation * Raised version to 0.2.1 * Integrated switches for <3.8 and >=3.8 handling * Fixes #6
- Loading branch information
Showing
8 changed files
with
57 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pytest >= 3.0.0, <5 | ||
packaging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from tox._pytestplugin import initproj, cmd, pytest_configure, pytest_addoption # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
|
||
def test_dummy(): | ||
""" | ||
TODO think about how to test this properly | ||
TODO check tox own tests to see how to do this (use of _pytestplugin) | ||
TODO (also check if someone did this already) | ||
""" | ||
def test_dummy(cmd, initproj, monkeypatch): | ||
monkeypatch.delenv(str("TOXENV"), raising=False) | ||
|
||
path = initproj( | ||
'envreport_123', | ||
filedefs={ | ||
'tox.ini': """ | ||
[tox] | ||
envlist = a | ||
[testenv] | ||
deps=tox-envreport | ||
commands=echo "yehaaa" | ||
""" | ||
}) | ||
|
||
assert path | ||
|
||
result = cmd('all') | ||
assert result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters