Skip to content
This repository has been archived by the owner on Mar 14, 2020. It is now read-only.

Commit

Permalink
Bump pytest from 3.4.2 to 4.6.2 (#15)
Browse files Browse the repository at this point in the history
* Bump pytest from 3.4.2 to 4.6.2

Bumps [pytest](https://github.com/pytest-dev/pytest) from 3.4.2 to 4.6.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](pytest-dev/pytest@3.4.2...4.6.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* change error code to usage error code on tests
On version 3.8.0 of pytest a bug was fixed that an incorrect (or incomplete) flag returned EXIT_INTERRUPTED instead of EXIT_USAGEERROR.
This now checks for the correct error type
  • Loading branch information
dependabot-preview[bot] authored and enriquegh committed Jun 8, 2019
1 parent d826350 commit 631bb17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ funcsigs==1.0.2
idna==2.8
pluggy==0.12.0
py==1.8.0
pytest==3.4.2
pytest==4.6.2
PyYAML==5.1.1
requests==2.22.0
selenium==3.141.0
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_testobject.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-

import pytest
from _pytest.main import EXIT_INTERRUPTED
from _pytest.main import EXIT_USAGEERROR


@pytest.mark.smoke
Expand All @@ -16,7 +16,7 @@ def test_required_flag_output(testdir, flags):

result = testdir.runpytest(flags)

assert result.ret == EXIT_INTERRUPTED
assert result.ret == EXIT_USAGEERROR

result.stderr.fnmatch_lines([
'*error: argument {}: expected one argument'.format(flags)
Expand Down

0 comments on commit 631bb17

Please sign in to comment.