diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-10-02 13:41:03 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-10-02 13:41:03 +0000 |
| commit | 2e01aafc1cbe3bc21185fcc675d4db3591291064 (patch) | |
| tree | 2074885ef5700fa2b4289c1a2651407276d0e8b8 /dev-python/flask-mongoengine | |
| parent | ed53d9bc109b7c360bc419e413e29969d10c617b (diff) | |
| download | baldeagleos-repo-2e01aafc1cbe3bc21185fcc675d4db3591291064.tar.gz baldeagleos-repo-2e01aafc1cbe3bc21185fcc675d4db3591291064.tar.xz baldeagleos-repo-2e01aafc1cbe3bc21185fcc675d4db3591291064.zip | |
Adding metadata
Diffstat (limited to 'dev-python/flask-mongoengine')
| -rw-r--r-- | dev-python/flask-mongoengine/flask-mongoengine-1.0.0.ebuild | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/dev-python/flask-mongoengine/flask-mongoengine-1.0.0.ebuild b/dev-python/flask-mongoengine/flask-mongoengine-1.0.0.ebuild index c24440e05d64..a1154b3cf0ae 100644 --- a/dev-python/flask-mongoengine/flask-mongoengine-1.0.0.ebuild +++ b/dev-python/flask-mongoengine/flask-mongoengine-1.0.0.ebuild @@ -31,35 +31,36 @@ distutils_enable_tests pytest python_prepare_all() { sed -i -e '/addopts/d' setup.cfg || die - # fails with mongomock installed - sed -e 's:test_connection__should_parse_mongo_mock_uri:_&:' \ - -i tests/test_connection.py || die - distutils-r1_python_prepare_all } python_test() { + local EPYTEST_DESELECT=( + # fails with mongomock installed + tests/test_connection.py::test_connection__should_parse_mongo_mock_uri__as_uri_and_as_settings + ) local dbpath=${TMPDIR}/mongo.db local logpath=${TMPDIR}/mongod.log + local DB_PORT=27017 mkdir -p "${dbpath}" || die ebegin "Trying to start mongod on port ${DB_PORT}" LC_ALL=C \ mongod --dbpath "${dbpath}" --nojournal \ - --bind_ip 127.0.0.1 --port 27017 \ + --bind_ip 127.0.0.1 --port ${DB_PORT} \ --unixSocketPrefix "${TMPDIR}" \ --logpath "${logpath}" --fork || die sleep 2 # Now we need to check if the server actually started... - if [[ -S "${TMPDIR}"/mongodb-27017.sock ]]; then + if [[ -S "${TMPDIR}"/mongodb-${DB_PORT}.sock ]]; then # yay! eend 0 else eend 1 - eerror "Unable to start mongod for tests. See the server log:" - eerror " ${logpath}" + eerror "Unable to start mongod for tests. Here is the server log:" + cat "${logpath}" die "Unable to start mongod for tests." fi |
