Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
all: lint test build

build: changelog
cut -d= -f1 requirements.txt > tests/resources/requirements-latest.txt
PYTHONPATH=. python3 -m build

changelog:
Expand Down
15 changes: 7 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
attrs==21.4.0
attrs==22.1.0
bandit==1.7.4
build==0.8.0
colorama==0.4.5
coverage==6.4.2
flake8==4.0.1
flake8==5.0.4
flake8-docstrings==1.6.0
flake8-quotes==3.3.1
future==0.18.2
Expand All @@ -15,24 +15,23 @@ iniconfig==1.1.1
Mako==1.2.1
mando==0.6.4
MarkupSafe==2.1.1
mccabe==0.6.1
mccabe==0.7.0
packaging==21.3
parse==1.19.0
parse-type==0.6.0
pathspec==0.9.0
pbr==5.9.0
pep517==0.12.0
pep517==0.13.0
pluggy==1.0.0
py==1.11.0
pycodestyle==2.8.0
pycodestyle==2.9.1
pydocstyle==6.1.1
pyflakes==2.4.0
pyflakes==2.5.0
pyparsing==3.0.9
pystache==0.6.0
pytest==7.1.2
pytest-bdd==6.0.1
pytest-cov==3.0.0
pytest-flake8==1.1.1
pytest-testinfra==6.8.0
PyYAML==6.0
radon==5.1.0
Expand All @@ -42,5 +41,5 @@ smmap==5.0.0
snowballstemmer==2.2.0
stevedore==4.0.0
tomli==2.0.1
urllib3==1.26.10
urllib3==1.26.11
yamllint==1.27.1
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ per-file-ignores =
tests/*:D104,D401,D403

[tool:pytest]
addopts = --cov --durations 3 --flake8 --verbose
addopts = --cov --durations 3 --verbose
bdd_features_base_dir = tests/features/
markers =
system_tests: Marks tests as system tests.
Expand Down
2 changes: 1 addition & 1 deletion tests/features/example.feature
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Feature: Example of Testinfra BDD
When the pip package is testinfra-bdd
# Can check if the package is absent or present.
Then the pip package is present
And the pip package version is 1.0.6
And the pip package version is 2.0.0
# Check that installed packages have compatible dependencies.
And the pip check is OK

Expand Down
3 changes: 0 additions & 3 deletions tests/resources/requirements-latest.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# This file should contain all the packages in the requirements.txt file in
# the root directory of this project except with no version specification.
attrs
bandit
build
Expand Down Expand Up @@ -34,7 +32,6 @@ pystache
pytest
pytest-bdd
pytest-cov
pytest-flake8
pytest-testinfra
PyYAML
radon
Expand Down
2 changes: 1 addition & 1 deletion tests/resources/sut/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& chmod 544 /etc/ntp.conf \
&& chown ntp:ntp /etc/ntp.conf \
&& pip install --no-cache-dir semver==2.12.0 testinfra-bdd==1.0.6
&& pip install --no-cache-dir semver==2.12.0 testinfra-bdd==2.0.0

COPY issue21.txt /tmp

Expand Down