Skip to content

Commit

Permalink
Tidy up tox.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelLipski committed May 11, 2022
1 parent edd8ce7 commit ac16a28
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/test_slide_out.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
mock_run_cmd_and_forward_stdout)


class TestSlideout:
class TestSlideOut:

def setup_method(self, mocker: Any) -> None:

Expand Down
3 changes: 2 additions & 1 deletion tests/test_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ def test_branch_reappears_in_definition(self, mocker: Any) -> None:
with pytest.raises(MacheteException) as e:
launch_command('status')
if e:
assert e.value.parameter == expected_error_message, 'Verify that expected error message has appeared a branch re-appears in tree definition.'
assert e.value.parameter == expected_error_message, \
'Verify that expected error message has appeared if a branch re-appears in tree definition.'
9 changes: 5 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ install_command =
pip install {opts} {packages}
deps =
pytest
pytest-xdist
pytest-mock
pytest-xdist
allowlist_externals = mkdir
commands =
mkdir -p test-results/
pytest -n auto --junitxml=test-results/testenv-{envname}.xml {posargs}
pytest --numprocesses=auto --junitxml=test-results/testenv-{envname}.xml {posargs}

[testenv:pep8]
deps = flake8
Expand All @@ -38,8 +38,9 @@ commands = {posargs}
[testenv:coverage]
description = "Check the test coverage of the code"
deps =
{[testenv]deps}
coverage
pytest
pytest-mock
commands =
coverage erase
# Generates .coverage binary file, used as the source of truth for the subsequent reports
Expand Down Expand Up @@ -69,4 +70,4 @@ deps =
mypy
pytest
commands =
mypy --config-file mypy.ini git_machete tests
mypy --config-file mypy.ini git_machete tests

0 comments on commit ac16a28

Please sign in to comment.