[Bug 221311] [NEW PORT] databases/influxdb-python: InfluxDB Python client
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Aug 8 10:35:45 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221311
--- Comment #7 from Kubilay Kocak <koobs at FreeBSD.org> ---
(In reply to Konstantin Shapkin from comment #4)
As far as "ImportError: No module named tests" goes:
a) there is no tests/ directory (module) in the root
b) there *is* an influxdb/tests directory (module)
c) their CI (travis.yml/tox.ini) configuration runs: 'nosetests -v ...'
directly
d) (c) means they don't test their "python setup.py test" test entry point
My guess is that tests/ was probably moved to influxdb/tests at some point, and
setup.py:test_suite was not updated (to 'influxdb.tests') to match. Since nose
has good test discovery, it finds influxdb/tests without being pointed to it.
This all means, you can probably run tests by either:
1) Patching setup.py:test_suite, settings its value to 'influxdb.tests'
2) use ${PYTHON_CMD} -m nose as the test command
Personally, I would do (1), as I prefer to use the canonical 'pythonX.Y
setup.py test' command, making it work if I have to (with patches), and
submitting the changes/bugfixes upstream so projects know that people care.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-python
mailing list