summaryrefslogtreecommitdiff
path: root/dev-python/mongoengine
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-10-02 13:41:03 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-10-02 13:41:03 +0000
commit2e01aafc1cbe3bc21185fcc675d4db3591291064 (patch)
tree2074885ef5700fa2b4289c1a2651407276d0e8b8 /dev-python/mongoengine
parented53d9bc109b7c360bc419e413e29969d10c617b (diff)
downloadbaldeagleos-repo-2e01aafc1cbe3bc21185fcc675d4db3591291064.tar.gz
baldeagleos-repo-2e01aafc1cbe3bc21185fcc675d4db3591291064.tar.xz
baldeagleos-repo-2e01aafc1cbe3bc21185fcc675d4db3591291064.zip
Adding metadata
Diffstat (limited to 'dev-python/mongoengine')
-rw-r--r--dev-python/mongoengine/mongoengine-0.23.1.ebuild46
1 files changed, 22 insertions, 24 deletions
diff --git a/dev-python/mongoengine/mongoengine-0.23.1.ebuild b/dev-python/mongoengine/mongoengine-0.23.1.ebuild
index 9f3ff3cc420c..105377a1e333 100644
--- a/dev-python/mongoengine/mongoengine-0.23.1.ebuild
+++ b/dev-python/mongoengine/mongoengine-0.23.1.ebuild
@@ -25,48 +25,46 @@ BDEPEND="
distutils_enable_tests pytest
-src_prepare() {
- # TODO: investigate
- sed -e 's:test_covered_index:_&:' \
- -i tests/document/test_indexes.py || die
- # no $eval
- sed -e 's:test_exec_js_field_sub:_&:' \
- -e 's:test_exec_js_query:_&:' \
- -e 's:test_item_frequencies_normalize:_&:' \
- -e 's:test_item_frequencies_with_0_values:_&:' \
- -e 's:test_item_frequencies_with_False_values:_&:' \
- -e 's:test_item_frequencies_with_null_embedded:_&:' \
- -i tests/queryset/test_queryset.py || die
- # TODO: investigate (wrong order? bad comparison?)
- sed -e 's:test_distinct_ListField_EmbeddedDocumentField:_&:' \
- -i tests/queryset/test_queryset.py || die
-
- distutils-r1_src_prepare
-}
-
python_test() {
+ local EPYTEST_DESELECT=(
+ # TODO: investigate
+ tests/document/test_indexes.py::TestIndexes::test_collation
+ tests/document/test_indexes.py::TestIndexes::test_covered_index
+ tests/document/test_indexes.py::TestIndexes::test_create_geohaystack_index
+ # no $eval
+ tests/queryset/test_queryset.py::TestQueryset::test_exec_js_query
+ tests/queryset/test_queryset.py::TestQueryset::test_exec_js_field_sub
+ tests/queryset/test_queryset.py::TestQueryset::test_item_frequencies_normalize
+ tests/queryset/test_queryset.py::TestQueryset::test_item_frequencies_with_0_values
+ tests/queryset/test_queryset.py::TestQueryset::test_item_frequencies_with_False_values
+ tests/queryset/test_queryset.py::TestQueryset::test_item_frequencies_with_null_embedded
+ # TODO: investigate (wrong order? bad comparison?)
+ tests/queryset/test_queryset.py::TestQueryset::test_distinct_ListField_EmbeddedDocumentField
+ )
+
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}"
- die "Unable to start mongod for tests."
+ eerror "Unable to start mongod for tests. Here is the server log:"
+ cat "${logpath}"
+ die "Unable to start mongod for tests"
fi
local failed