Skip to content

Commit

Permalink
unit_tests: fix test requirements for windows
Browse files Browse the repository at this point in the history
Use a newer hacking and coverage version.

The OpenStack upper requirements do not allow now for the hacking
/ coverage packages to be installed:
```
    The user requested coverage!=4.4 and >=4.0
    The user requested (constraint) coverage===7.6.7
```

Added to the ignored flake rules: E741,H216,F522,H215,H211,E721.

Change-Id: I4833aa467cd7dd69bf897b6bce2449cacc1dbc1e
  • Loading branch information
ader1990 committed Nov 27, 2024
1 parent 8865a51 commit 36711bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.

hacking>=3.0.1,<3.1.0 # Apache-2.0

coverage!=4.4,>=4.0 # Apache-2.0
hacking==6.1.0 # Apache-2.0
coverage>=4.4.1 # Apache-2.0
ddt>=1.0.1 # MIT
docutils>=0.11 # OSI-Approved Open Source, Public Domain
mock>=1.0 # BSD
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ commands =
# E125 is deliberately excluded. See https://github.com/jcrocholl/pep8/issues/126
# E251 Skipped due to https://github.com/jcrocholl/pep8/issues/301

ignore = E125,E251,W503,W504,E305,E731,E117,W605,F632
ignore = E125,E251,W503,W504,E305,E731,E117,W605,F632,E741,H216,F522,H215,H211,E721
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools

0 comments on commit 36711bd

Please sign in to comment.