Skip to content

Commit

Permalink
Convert test/ tests to conventional and idiomatic tests
Browse files Browse the repository at this point in the history
Signed-off-by: Aarni Koskela <akx@iki.fi>
  • Loading branch information
akx committed Dec 24, 2023
1 parent c0e5dcb commit e7b56c1
Show file tree
Hide file tree
Showing 131 changed files with 979 additions and 1,690 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ nosetests.xml
coverage.xml
*,cover
.hypothesis/
test/ssl/demoCA
test/ssl/rootCA
test/ssl/signingCA
tests/ssl/demoCA
tests/ssl/rootCA
tests/ssl/signingCA
*.csr

# Translations
Expand Down
2 changes: 2 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This file ensures pytest keeps this directory in sys.path,
# so you can run `pytest tests/lib`.
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ ignore = []
line-length = 167

[tool.ruff.per-file-ignores]
"{examples,test}/**/*.py" = [
"examples/**/*.py" = [
"B",
"E402",
"E711",
Expand All @@ -101,10 +101,11 @@ line-length = 167
"UP",
]
"tests/**/*.py" = [
"E402",
"F811",
"F841",
"S101",
"S105",
"S106",
]
"tests/test_mqttv5.py" = [
"F841", # TODO: fix when fixing this test file
]
9 changes: 0 additions & 9 deletions test/Makefile

This file was deleted.

53 changes: 0 additions & 53 deletions test/lib/01-reconnect-on-failure.py

This file was deleted.

35 changes: 0 additions & 35 deletions test/lib/01-unpwd-set.py

This file was deleted.

37 changes: 0 additions & 37 deletions test/lib/01-unpwd-unicode-set.py

This file was deleted.

37 changes: 0 additions & 37 deletions test/lib/01-will-unpwd-set.py

This file was deleted.

15 changes: 0 additions & 15 deletions test/lib/08-ssl-bad-cacert.py

This file was deleted.

31 changes: 0 additions & 31 deletions test/lib/08-ssl-fake-cacert.py

This file was deleted.

37 changes: 0 additions & 37 deletions test/lib/Makefile

This file was deleted.

54 changes: 0 additions & 54 deletions test/lib/context.py

This file was deleted.

Loading

0 comments on commit e7b56c1

Please sign in to comment.