Closed df7cb closed 8 years ago
The "real" test suite is the one launched by "make installcheck": pure python tests aren't really testing much, it would be best to test using make installcheck against a live running PostgreSQL installation.
How are you running tests for other PostgreSQL extensions in debian packages ?
I'm using nosetests to run the tests, which works fine with the tests written as is. To keep the compatibility between the two, I have a first fix which manually wraps the function (instead of using functools.wraps) to not expose an argument that py.test will try to magically convert to a fixture: 19315190b102b231c2fc14aa32437ad522c38c8f
The tests now works on both py.test and nose. I still have to correct some things so that the tests pass in python3 as well, but that should be easy.
The fix for python3 is there: b76a310799131fae7b95db932024a4854839c267
Hi,
thanks for fixing the regression test failures spotted by the Debian build system in #112.
Unfortunately the tests still don't work:
I had tried to fix this using some sort of s/tempdir/tmpdir/, but then I ran into other problems with the rst test at the end of that file where "assert extract('third.rst') == meta_1" was failing, so I left the testsuite in the Debian package disabled for now.
The paste above is for git head; the full Debian build log for 1.2.4 is at https://buildd.debian.org/status/fetch.php?pkg=postgresql-multicorn&arch=arm64&ver=1.2.4-1&stamp=1450804326