Skip to content

Commit 5e38e7f

Browse files
committed
Convert test/ tests to conventional and idiomatic tests
Signed-off-by: Aarni Koskela <akx@iki.fi>
1 parent c0e5dcb commit 5e38e7f

File tree

131 files changed

+989
-1709
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+989
-1709
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ nosetests.xml
4545
coverage.xml
4646
*,cover
4747
.hypothesis/
48-
test/ssl/demoCA
49-
test/ssl/rootCA
50-
test/ssl/signingCA
48+
tests/ssl/demoCA
49+
tests/ssl/rootCA
50+
tests/ssl/signingCA
5151
*.csr
5252

5353
# Translations

conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This file ensures pytest keeps this directory in sys.path,
2+
# so you can run `pytest tests/lib`.

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ ignore = []
8888
line-length = 167
8989

9090
[tool.ruff.per-file-ignores]
91-
"{examples,test}/**/*.py" = [
91+
"examples/**/*.py" = [
9292
"B",
9393
"E402",
9494
"E711",
@@ -101,10 +101,11 @@ line-length = 167
101101
"UP",
102102
]
103103
"tests/**/*.py" = [
104-
"E402",
105104
"F811",
106-
"F841",
107105
"S101",
108106
"S105",
109107
"S106",
110108
]
109+
"tests/test_mqttv5.py" = [
110+
"F841", # TODO: fix when fixing this test file
111+
]

test/Makefile

Lines changed: 0 additions & 9 deletions
This file was deleted.

test/lib/01-reconnect-on-failure.py

Lines changed: 0 additions & 53 deletions
This file was deleted.

test/lib/01-unpwd-set.py

Lines changed: 0 additions & 35 deletions
This file was deleted.

test/lib/01-unpwd-unicode-set.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

test/lib/01-will-unpwd-set.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

test/lib/08-ssl-bad-cacert.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

test/lib/08-ssl-fake-cacert.py

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)