Browse Source

Rebuild and fix pytest based tests in new dir tests_new. To work with defined env for engine using separate process per test.

PYADPT-100
heck 1 year ago
parent
commit
e3c53a0d3c
13 changed files with 36 additions and 28 deletions
  1. +2
    -1
      Makefile
  2. +8
    -0
      pyproject.toml
  3. +2
    -1
      setup.cfg
  4. +10
    -10
      tests_new/conftest.py
  5. +1
    -2
      tests_new/constants.py
  6. +0
    -0
      tests_new/data/README.md
  7. +0
    -0
      tests_new/data/alice@openpgp.example.pub.asc
  8. +0
    -0
      tests_new/data/alice@openpgp.example.sec.asc
  9. +0
    -0
      tests_new/data/bob@openpgp.example.pub.asc
  10. +0
    -0
      tests_new/data/bob@openpgp.example.sec.asc
  11. +7
    -9
      tests_new/test_identity.py
  12. +5
    -4
      tests_new/test_message.py
  13. +1
    -1
      tests_new/test_pep.py

+ 2
- 1
Makefile View File

@ -57,8 +57,9 @@ envtest:
install-test: compile
pip3 install .[test]
# TODO: maybe use setup.py test?
test: install-test
pytest
pytest --forked
# Development


+ 8
- 0
pyproject.toml View File

@ -1,3 +1,11 @@
[build-system]
requires = ["setuptools >=39.2.0", "setuptools_scm >= 4.1.2", "wheel >= 0.35.1"]
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = ""
testpaths = [
"tests_new",
]

+ 2
- 1
setup.cfg View File

@ -28,7 +28,7 @@ classifiers =
zip_safe = false
include_package_data = true
python_requires = >= 3.6
test_suite = tests
test_suite = tests_new
install_requires =
# deprecated/redundant with pyproject.toml, but lets keep both ways around for now
setup_requires =
@ -39,4 +39,5 @@ setup_requires =
# To install these dependencies, run pip install .[test]
test =
pytest
pytest-forked
doc = sphinx

tests/conftest.py → tests_new/conftest.py View File


tests/constants.py → tests_new/constants.py View File


tests/data/README.md → tests_new/data/README.md View File


tests/data/alice@openpgp.example.pub.asc → tests_new/data/alice@openpgp.example.pub.asc View File


tests/data/alice@openpgp.example.sec.asc → tests_new/data/alice@openpgp.example.sec.asc View File


tests/data/bob@openpgp.example.pub.asc → tests_new/data/bob@openpgp.example.pub.asc View File


tests/data/bob@openpgp.example.sec.asc → tests_new/data/bob@openpgp.example.sec.asc View File


tests/test_identity.py → tests_new/test_identity.py View File


tests/test_message.py → tests_new/test_message.py View File


tests/test_pep.py → tests_new/test_pep.py View File


Loading…
Cancel
Save