Port tests to pytest
Use simple asserts and pytest's powerful introspection to make testing simpler. This merges the old .py/.ref file pairs into simple .py files where the expected values are right next to the code being tested. This commit does not touch the C++ part of the code and replicates the Python tests exactly like the old .ref-file-based approach.
Showing
example/CMakeLists.txt
deleted
100644 → 0
example/eigen.py
deleted
100644 → 0
example/eigen.ref
deleted
100644 → 0
example/example-buffers.py
deleted
100755 → 0
example/example-buffers.ref
deleted
100644 → 0
example/example-callbacks.py
deleted
100755 → 0
example/example-callbacks.ref
deleted
100644 → 0
example/example-custom-exceptions.py
deleted
100644 → 0
example/example-eval.py
deleted
100644 → 0
example/example-inheritance.py
deleted
100644 → 0
example/example-inheritance.ref
deleted
100644 → 0
example/example-keep-alive.py
deleted
100644 → 0
example/example-keep-alive.ref
deleted
100644 → 0
example/example-modules.py
deleted
100755 → 0
example/example-modules.ref
deleted
100644 → 0
example/example-numpy-dtypes.py
deleted
100644 → 0
example/example-numpy-dtypes.ref
deleted
100644 → 0
example/example-numpy-vectorize.py
deleted
100755 → 0
example/example-numpy-vectorize.ref
deleted
100644 → 0
example/example-opaque-types.py
deleted
100644 → 0
example/example-opaque-types.ref
deleted
100644 → 0
example/example-pickling.ref
deleted
100644 → 0
example/example-python-types.py
deleted
100755 → 0
example/example-python-types.ref
deleted
100644 → 0
example/example-smart-ptr.py
deleted
100755 → 0
example/example-smart-ptr.ref
deleted
100644 → 0
This diff is collapsed.
Click to expand it.
example/example-virtual-functions.py
deleted
100644 → 0
example/issues.py
deleted
100644 → 0
example/issues.ref
deleted
100644 → 0
example/run_test.py
deleted
100755 → 0
tests/CMakeLists.txt
0 → 100644
tests/conftest.py
0 → 100644
File moved
tests/test_buffers.py
0 → 100644
tests/test_callbacks.py
0 → 100644
tests/test_constants_and_functions.py
0 → 100644
tests/test_eigen.py
0 → 100644
tests/test_exceptions.py
0 → 100644
tests/test_inheritance.py
0 → 100644
tests/test_issues.py
0 → 100644
tests/test_keep_alive.py
0 → 100644
tests/test_kwargs_and_defaults.py
0 → 100644
tests/test_methods_and_attributes.py
0 → 100644
tests/test_modules.py
0 → 100644
tests/test_numpy_dtypes.py
0 → 100644
tests/test_numpy_vectorize.py
0 → 100644
tests/test_opaque_types.py
0 → 100644
tests/test_operator_overloading.py
0 → 100644
tests/test_python_types.py
0 → 100644
This diff is collapsed.
Click to expand it.
tests/test_sequences_and_iterators.py
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
tests/test_smart_ptr.py
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
tests/test_virtual_functions.py
0 → 100644
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment