Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-mongomock.spec'], chrootPath='/var/lib/mock/fedora-rawhide-x86_64-1674310596.887632/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.84n8n32z:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.84n8n32z:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'ed0024d4535d4804ab681cdd40ee08e8', '-D', '/var/lib/mock/fedora-rawhide-x86_64-1674310596.887632/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.84n8n32z:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-mongomock.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1674172800 Wrote: /builddir/build/SRPMS/python-mongomock-3.20.0-8.fc38.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-mongomock.spec'], chrootPath='/var/lib/mock/fedora-rawhide-x86_64-1674310596.887632/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.84n8n32z:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.84n8n32z:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '7132d433acb14b6f9719b31e58827ed1', '-D', '/var/lib/mock/fedora-rawhide-x86_64-1674310596.887632/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.84n8n32z:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-mongomock.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1674172800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.A05Fgv + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf mongomock-3.20.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/mongomock-3.20.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd mongomock-3.20.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf mongomock.egg-info + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.DMaWDf + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd mongomock-3.20.0 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP' /usr/lib/python3.11/site-packages/setuptools/dist.py:771: UserWarning: Usage of dash-separated 'author-email' will not be supported in future versions. Please use the underscore name 'author_email' instead warnings.warn( /usr/lib/python3.11/site-packages/setuptools/dist.py:771: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( /usr/lib/python3.11/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. warnings.warn( /usr/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( /usr/lib/python3.11/site-packages/setuptools/dist.py:771: UserWarning: Usage of dash-separated 'author-email' will not be supported in future versions. Please use the underscore name 'author_email' instead warnings.warn( /usr/lib/python3.11/site-packages/setuptools/dist.py:771: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( running build running build_py creating build creating build/lib creating build/lib/mongomock copying mongomock/database.py -> build/lib/mongomock copying mongomock/gridfs.py -> build/lib/mongomock copying mongomock/results.py -> build/lib/mongomock copying mongomock/command_cursor.py -> build/lib/mongomock copying mongomock/helpers.py -> build/lib/mongomock copying mongomock/__init__.py -> build/lib/mongomock copying mongomock/mongo_client.py -> build/lib/mongomock copying mongomock/collection.py -> build/lib/mongomock copying mongomock/patch.py -> build/lib/mongomock copying mongomock/aggregate.py -> build/lib/mongomock copying mongomock/write_concern.py -> build/lib/mongomock copying mongomock/store.py -> build/lib/mongomock copying mongomock/__version__.py -> build/lib/mongomock copying mongomock/read_preferences.py -> build/lib/mongomock copying mongomock/read_concern.py -> build/lib/mongomock copying mongomock/object_id.py -> build/lib/mongomock copying mongomock/filtering.py -> build/lib/mongomock running egg_info creating mongomock.egg-info writing mongomock.egg-info/PKG-INFO writing dependency_links to mongomock.egg-info/dependency_links.txt writing requirements to mongomock.egg-info/requires.txt writing top-level names to mongomock.egg-info/top_level.txt [pbr] Processing SOURCES.txt writing manifest file 'mongomock.egg-info/SOURCES.txt' warning: no files found matching 'AUTHORS' warning: no files found matching 'ChangeLog' warning: no previously-included files found matching '.gitignore' warning: no previously-included files found matching '.gitreview' warning: no previously-included files matching '*.pyc' found anywhere in distribution reading manifest template 'MANIFEST.in' warning: no files found matching 'AUTHORS' warning: no files found matching 'Changelog' adding license file 'LICENSE' writing manifest file 'mongomock.egg-info/SOURCES.txt' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.FFqHNq + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64 ++ dirname /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd mongomock-3.20.0 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64 --prefix /usr /usr/lib/python3.11/site-packages/setuptools/dist.py:771: UserWarning: Usage of dash-separated 'author-email' will not be supported in future versions. Please use the underscore name 'author_email' instead warnings.warn( /usr/lib/python3.11/site-packages/setuptools/dist.py:771: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( /usr/lib/python3.11/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. warnings.warn( /usr/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( /usr/lib/python3.11/site-packages/setuptools/dist.py:771: UserWarning: Usage of dash-separated 'author-email' will not be supported in future versions. Please use the underscore name 'author_email' instead warnings.warn( /usr/lib/python3.11/site-packages/setuptools/dist.py:771: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( running install [pbr] Generating AUTHORS [pbr] AUTHORS complete (0.0s) running install_lib creating /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr creating /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib creating /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11 creating /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages creating /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock copying build/lib/mongomock/filtering.py -> /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock copying build/lib/mongomock/object_id.py -> /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock copying build/lib/mongomock/read_concern.py -> /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock copying build/lib/mongomock/read_preferences.py -> /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock copying build/lib/mongomock/__version__.py -> /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock copying build/lib/mongomock/store.py -> /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock copying build/lib/mongomock/write_concern.py -> /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock copying build/lib/mongomock/aggregate.py -> /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock copying build/lib/mongomock/patch.py -> /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock copying build/lib/mongomock/collection.py -> /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock copying build/lib/mongomock/mongo_client.py -> /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock copying build/lib/mongomock/__init__.py -> /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock copying build/lib/mongomock/helpers.py -> /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock copying build/lib/mongomock/command_cursor.py -> /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock copying build/lib/mongomock/results.py -> /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock copying build/lib/mongomock/gridfs.py -> /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock copying build/lib/mongomock/database.py -> /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock byte-compiling /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock/filtering.py to filtering.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock/object_id.py to object_id.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock/read_concern.py to read_concern.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock/read_preferences.py to read_preferences.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock/__version__.py to __version__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock/store.py to store.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock/write_concern.py to write_concern.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock/aggregate.py to aggregate.cpython-311.pyc /usr/lib/python3.11/site-packages/mongomock/aggregate.py:1161: SyntaxWarning: "is not" with a literal. Did you mean "!="? byte-compiling /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock/patch.py to patch.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock/collection.py to collection.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock/mongo_client.py to mongo_client.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock/helpers.py to helpers.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock/command_cursor.py to command_cursor.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock/results.py to results.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock/gridfs.py to gridfs.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock/database.py to database.cpython-311.pyc writing byte-compilation script '/tmp/tmpfov66laq.py' /usr/bin/python3 /tmp/tmpfov66laq.py /usr/lib/python3.11/site-packages/mongomock/aggregate.py:1161: SyntaxWarning: "is not" with a literal. Did you mean "!="? removing /tmp/tmpfov66laq.py running install_egg_info running egg_info writing mongomock.egg-info/PKG-INFO writing dependency_links to mongomock.egg-info/dependency_links.txt writing requirements to mongomock.egg-info/requires.txt writing top-level names to mongomock.egg-info/top_level.txt [pbr] Reusing existing SOURCES.txt Copying mongomock.egg-info to /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages/mongomock-3.20.0-py3.11.egg-info running install_scripts + rm -rfv /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/bin/__pycache__ + /usr/bin/find-debuginfo -j2 --strict-build-id -m -i --build-id-seed 3.20.0-8.fc38 --unique-debug-suffix -3.20.0-8.fc38.x86_64 --unique-debug-src-base python-mongomock-3.20.0-8.fc38.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/mongomock-3.20.0 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j2 Bytecompiling .py files below /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11 using python3.11 /usr/lib/python3.11/site-packages/mongomock/aggregate.py:1161: SyntaxWarning: "is not" with a literal. Did you mean "!="? /usr/lib/python3.11/site-packages/mongomock/aggregate.py:1161: SyntaxWarning: "is not" with a literal. Did you mean "!="? + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.tyY316 + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd mongomock-3.20.0 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes' + PATH=/builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/bin:/builddir/.local/bin:/builddir/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PYTHONPATH=/builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib64/python3.11/site-packages:/builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/lib/python3.11/site-packages + PYTHONDONTWRITEBYTECODE=1 + PYTEST_XDIST_AUTO_NUM_WORKERS=2 + /usr/bin/pytest -v tests -k 'not BulkOperationsWithPymongoTest and not CollectionComparisonTest and not MongoClientCollectionTest and not MongoClientSortSkipLimitTest and not test__insert_do_not_modify_input' ============================= test session starts ============================== platform linux -- Python 3.11.1, pytest-7.2.0, pluggy-1.0.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /builddir/build/BUILD/mongomock-3.20.0 collecting ... collected 740 items / 196 deselected / 544 selected tests/test__bulk_operations.py::BulkOperationsTest::test__bulk_execute_must_raise_error_if_bulk_empty PASSED [ 0%] tests/test__bulk_operations.py::BulkOperationsTest::test__bulk_update_must_raise_error_if_missed_operator PASSED [ 0%] tests/test__bulk_operations.py::BulkOperationsTest::test__insert PASSED [ 0%] tests/test__bulk_operations.py::BulkOperationsTest::test__ordered_insert_and_update PASSED [ 0%] tests/test__bulk_operations.py::BulkOperationsTest::test__remove PASSED [ 0%] tests/test__bulk_operations.py::BulkOperationsTest::test__remove_one PASSED [ 1%] tests/test__bulk_operations.py::BulkOperationsTest::test__update_must_update_all_documents PASSED [ 1%] tests/test__bulk_operations.py::BulkOperationsTest::test__update_one PASSED [ 1%] tests/test__bulk_operations.py::BulkOperationsTest::test_update PASSED [ 1%] tests/test__bulk_operations.py::BulkOperationsTest::test_upsert_replace_one PASSED [ 1%] tests/test__bulk_operations.py::BulkOperationsTest::test_upsert_replace_one_on_empty_set PASSED [ 2%] tests/test__bulk_operations.py::BulkOperationsTest::test_upsert_update PASSED [ 2%] tests/test__bulk_operations.py::BulkOperationsTest::test_upsert_update_on_empty_set PASSED [ 2%] tests/test__bulk_operations.py::BulkOperationsTest::test_upsert_update_one PASSED [ 2%] tests/test__client_api.py::MongoClientApiTest::test__codec_options SKIPPED [ 2%] tests/test__client_api.py::MongoClientApiTest::test__codec_options_without_pymongo PASSED [ 2%] tests/test__client_api.py::MongoClientApiTest::test__different_read_preference SKIPPED [ 3%] tests/test__client_api.py::MongoClientApiTest::test__parse_hosts PASSED [ 3%] tests/test__client_api.py::MongoClientApiTest::test__parse_url PASSED [ 3%] tests/test__client_api.py::MongoClientApiTest::test__read_preference PASSED [ 3%] tests/test__client_api.py::MongoClientApiTest::test_client_implements_context_managers PASSED [ 3%] tests/test__client_api.py::MongoClientApiTest::test_database_names PASSED [ 4%] tests/test__client_api.py::MongoClientApiTest::test_list_database_names PASSED [ 4%] tests/test__collection_api.py::CollectionAPITest::test__add_to_set_missing_value PASSED [ 4%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_add_fields PASSED [ 4%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_arithmetic PASSED [ 4%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_array_to_object PASSED [ 4%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_bucket PASSED [ 5%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_bucket_no_default PASSED [ 5%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_bucket_wrong_options PASSED [ 5%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_count PASSED [ 5%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_count_errors PASSED [ 5%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_date_to_string SKIPPED [ 6%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_empty PASSED [ 6%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_facet PASSED [ 6%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_filter PASSED [ 6%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_filter_wrong_options PASSED [ 6%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_graph_lookup_basic PASSED [ 6%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_graph_lookup_behaves_as_lookup PASSED [ 7%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_graph_lookup_cyclic_pointers PASSED [ 7%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_graph_lookup_depth_field PASSED [ 7%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_graph_lookup_depth_filed_not_string PASSED [ 7%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_graph_lookup_dot_in_connect_from_field PASSED [ 7%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_graph_lookup_expression_start_with PASSED [ 8%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_graph_lookup_from_array PASSED [ 8%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_graph_lookup_max_depth PASSED [ 8%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_graph_lookup_max_depth_0 PASSED [ 8%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_graph_lookup_max_depth_not_number PASSED [ 8%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_graph_lookup_missing_operator PASSED [ 9%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_graph_lookup_multiple_connections PASSED [ 9%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_graph_lookup_restrict_not_dict PASSED [ 9%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_graph_lookup_restrict_search PASSED [ 9%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_graphlookup_operator_not_string PASSED [ 9%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_group_dbref_key SKIPPED [ 9%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_group_dict_key PASSED [ 10%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_group_missing_key PASSED [ 10%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_group_scalar_key PASSED [ 10%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_group_sum PASSED [ 10%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_group_sum_for_decimal SKIPPED [ 10%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_group_uuid_key PASSED [ 11%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_lookup PASSED [ 11%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_lookup_dot_in_as PASSED [ 11%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_lookup_dot_in_local_field PASSED [ 11%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_lookup_missing_operator PASSED [ 11%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_lookup_not_implemented_operators PASSED [ 11%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_lookup_operator_not_string PASSED [ 12%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_lookup_reverse PASSED [ 12%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_mixed_expression PASSED [ 12%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_not_implemented PASSED [ 12%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_array_element_at PASSED [ 12%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_array_size PASSED [ 13%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_array_size_if_null PASSED [ 13%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_array_subfield PASSED [ 13%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_computed_field_in_exclusion PASSED [ 13%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_cond_mongodb_to_bool PASSED [ 13%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_exclude_in_inclusion PASSED [ 13%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_exclusion_with_only_id PASSED [ 14%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_group_operations PASSED [ 14%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_id PASSED [ 14%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_id_can_always_be_excluded PASSED [ 14%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_if_null PASSED [ 14%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_if_null_expression PASSED [ 15%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_include_in_exclusion PASSED [ 15%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_inclusion_with_only_id PASSED [ 15%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_missing_fields PASSED [ 15%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_missing_nested_fields PASSED [ 15%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_out PASSED [ 15%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_out_no_entries PASSED [ 16%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_out_replace PASSED [ 16%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_rename__id PASSED [ 16%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_rename_dot_fields PASSED [ 16%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_rotate PASSED [ 16%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_subfield PASSED [ 17%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_subfield_conflict PASSED [ 17%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_subfield_exclude PASSED [ 17%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_replace_root PASSED [ 17%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_replace_root_expression PASSED [ 17%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_replace_root_missing_in_expr PASSED [ 18%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_replace_root_non_existing PASSED [ 18%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_replace_root_static PASSED [ 18%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_replace_root_use_dots PASSED [ 18%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_replace_root_with_array PASSED [ 18%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_replace_root_wrong_options PASSED [ 18%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_sample PASSED [ 19%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_sample_errors PASSED [ 19%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_select_nested PASSED [ 19%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_set PASSED [ 19%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_set_empty PASSED [ 19%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_set_error PASSED [ 20%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_set_override PASSED [ 20%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_set_subfield PASSED [ 20%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_slice PASSED [ 20%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_slice_wrong PASSED [ 20%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_string_operations PASSED [ 20%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_subtract_dates PASSED [ 21%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_subtract_milliseconds_from_date PASSED [ 21%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_switch PASSED [ 21%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_switch_mongodb_to_bool PASSED [ 21%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_switch_operation_failures PASSED [ 21%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_system_variables PASSED [ 22%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_to_decimal SKIPPED [ 22%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_to_decimal_without_pymongo PASSED [ 22%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_to_int SKIPPED [ 22%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_to_string SKIPPED [ 22%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_tostr_operation_objectid SKIPPED [ 22%] tests/test__collection_api.py::CollectionAPITest::test__aggregate_unrecognized PASSED [ 23%] tests/test__collection_api.py::CollectionAPITest::test__agregate_first_on_empty PASSED [ 23%] tests/test__collection_api.py::CollectionAPITest::test__all_elemmatch PASSED [ 23%] tests/test__collection_api.py::CollectionAPITest::test__all_size PASSED [ 23%] tests/test__collection_api.py::CollectionAPITest::test__array_size_argument_array PASSED [ 23%] tests/test__collection_api.py::CollectionAPITest::test__array_size_non_array PASSED [ 24%] tests/test__collection_api.py::CollectionAPITest::test__array_size_valid_argument_array PASSED [ 24%] tests/test__collection_api.py::CollectionAPITest::test__array_size_valid_array PASSED [ 24%] tests/test__collection_api.py::CollectionAPITest::test__array_size_valid_expression PASSED [ 24%] tests/test__collection_api.py::CollectionAPITest::test__avoid_change_data_after_set PASSED [ 24%] tests/test__collection_api.py::CollectionAPITest::test__bulk_write_delete_many SKIPPED [ 25%] tests/test__collection_api.py::CollectionAPITest::test__bulk_write_delete_one SKIPPED [ 25%] tests/test__collection_api.py::CollectionAPITest::test__bulk_write_insert_one SKIPPED [ 25%] tests/test__collection_api.py::CollectionAPITest::test__bulk_write_matched_count_no_changes SKIPPED [ 25%] tests/test__collection_api.py::CollectionAPITest::test__bulk_write_matched_count_replace_multiple_objects SKIPPED [ 25%] tests/test__collection_api.py::CollectionAPITest::test__bulk_write_ordered PASSED [ 25%] tests/test__collection_api.py::CollectionAPITest::test__bulk_write_replace_one SKIPPED [ 26%] tests/test__collection_api.py::CollectionAPITest::test__bulk_write_unordered PASSED [ 26%] tests/test__collection_api.py::CollectionAPITest::test__bulk_write_update_id PASSED [ 26%] tests/test__collection_api.py::CollectionAPITest::test__bulk_write_update_many SKIPPED [ 26%] tests/test__collection_api.py::CollectionAPITest::test__bulk_write_update_one SKIPPED [ 26%] tests/test__collection_api.py::CollectionAPITest::test__cannot_save_non_string_keys PASSED [ 27%] tests/test__collection_api.py::CollectionAPITest::test__codec_options SKIPPED [ 27%] tests/test__collection_api.py::CollectionAPITest::test__codec_options_without_pymongo PASSED [ 27%] tests/test__collection_api.py::CollectionAPITest::test__collection_is_indexable PASSED [ 27%] tests/test__collection_api.py::CollectionAPITest::test__configure_client_tz_aware PASSED [ 27%] tests/test__collection_api.py::CollectionAPITest::test__count PASSED [ 27%] tests/test__collection_api.py::CollectionAPITest::test__count_documents PASSED [ 28%] tests/test__collection_api.py::CollectionAPITest::test__create_idx_information PASSED [ 28%] tests/test__collection_api.py::CollectionAPITest::test__create_index_with_name SKIPPED [ 28%] tests/test__collection_api.py::CollectionAPITest::test__create_index_wrong_type PASSED [ 28%] tests/test__collection_api.py::CollectionAPITest::test__create_indexes_names SKIPPED [ 28%] tests/test__collection_api.py::CollectionAPITest::test__create_indexes_uniq_idxs SKIPPED [ 29%] tests/test__collection_api.py::CollectionAPITest::test__create_indexes_wrong_type PASSED [ 29%] tests/test__collection_api.py::CollectionAPITest::test__create_ttl_index PASSED [ 29%] tests/test__collection_api.py::CollectionAPITest::test__create_uniq_idxs_with_ascending_ordering SKIPPED [ 29%] tests/test__collection_api.py::CollectionAPITest::test__create_uniq_idxs_with_descending_ordering SKIPPED [ 29%] tests/test__collection_api.py::CollectionAPITest::test__create_uniq_idxs_with_dupes_already_there PASSED [ 29%] tests/test__collection_api.py::CollectionAPITest::test__create_uniq_idxs_without_ordering PASSED [ 30%] tests/test__collection_api.py::CollectionAPITest::test__create_unique_idx_information_with_ascending_ordering SKIPPED [ 30%] tests/test__collection_api.py::CollectionAPITest::test__create_unique_idx_information_with_descending_ordering SKIPPED [ 30%] tests/test__collection_api.py::CollectionAPITest::test__current_date_timestamp SKIPPED [ 30%] tests/test__collection_api.py::CollectionAPITest::test__current_date_timestamp_requires_pymongo PASSED [ 30%] tests/test__collection_api.py::CollectionAPITest::test__cursor_alive PASSED [ 31%] tests/test__collection_api.py::CollectionAPITest::test__cursor_clone PASSED [ 31%] tests/test__collection_api.py::CollectionAPITest::test__cursor_clone_keep_limit_skip PASSED [ 31%] tests/test__collection_api.py::CollectionAPITest::test__cursor_collection PASSED [ 31%] tests/test__collection_api.py::CollectionAPITest::test__cursor_count_when_db_changes PASSED [ 31%] tests/test__collection_api.py::CollectionAPITest::test__cursor_count_with_limit PASSED [ 31%] tests/test__collection_api.py::CollectionAPITest::test__cursor_count_with_skip PASSED [ 32%] tests/test__collection_api.py::CollectionAPITest::test__cursor_count_with_skip_init PASSED [ 32%] tests/test__collection_api.py::CollectionAPITest::test__cursor_distinct PASSED [ 32%] tests/test__collection_api.py::CollectionAPITest::test__cursor_getitem PASSED [ 32%] tests/test__collection_api.py::CollectionAPITest::test__cursor_getitem_bad_index PASSED [ 32%] tests/test__collection_api.py::CollectionAPITest::test__cursor_getitem_negative_index PASSED [ 33%] tests/test__collection_api.py::CollectionAPITest::test__cursor_getitem_slice PASSED [ 33%] tests/test__collection_api.py::CollectionAPITest::test__cursor_getitem_when_db_changes PASSED [ 33%] tests/test__collection_api.py::CollectionAPITest::test__cursor_hint PASSED [ 33%] tests/test__collection_api.py::CollectionAPITest::test__cursor_max_time_ms PASSED [ 33%] tests/test__collection_api.py::CollectionAPITest::test__cursor_rewind PASSED [ 34%] tests/test__collection_api.py::CollectionAPITest::test__cursor_sort PASSED [ 34%] tests/test__collection_api.py::CollectionAPITest::test__cursor_sort_composed PASSED [ 34%] tests/test__collection_api.py::CollectionAPITest::test__cursor_sort_dicts PASSED [ 34%] tests/test__collection_api.py::CollectionAPITest::test__cursor_sort_kept_after_clone PASSED [ 34%] tests/test__collection_api.py::CollectionAPITest::test__cursor_sort_projection PASSED [ 34%] tests/test__collection_api.py::CollectionAPITest::test__delete_many PASSED [ 35%] tests/test__collection_api.py::CollectionAPITest::test__delete_many_collation_option PASSED [ 35%] tests/test__collection_api.py::CollectionAPITest::test__delete_many_hint_option PASSED [ 35%] tests/test__collection_api.py::CollectionAPITest::test__delete_one PASSED [ 35%] tests/test__collection_api.py::CollectionAPITest::test__delete_one_invalid_filter PASSED [ 35%] tests/test__collection_api.py::CollectionAPITest::test__distinct_array_field PASSED [ 36%] tests/test__collection_api.py::CollectionAPITest::test__distinct_array_nested_field PASSED [ 36%] tests/test__collection_api.py::CollectionAPITest::test__distinct_document_field PASSED [ 36%] tests/test__collection_api.py::CollectionAPITest::test__distinct_error PASSED [ 36%] tests/test__collection_api.py::CollectionAPITest::test__distinct_filter_field PASSED [ 36%] tests/test__collection_api.py::CollectionAPITest::test__distinct_nested_field PASSED [ 36%] tests/test__collection_api.py::CollectionAPITest::test__drop_collection PASSED [ 37%] tests/test__collection_api.py::CollectionAPITest::test__drop_collection_indexes PASSED [ 37%] tests/test__collection_api.py::CollectionAPITest::test__drop_index_not_found PASSED [ 37%] tests/test__collection_api.py::CollectionAPITest::test__drop_n_recreate_collection PASSED [ 37%] tests/test__collection_api.py::CollectionAPITest::test__empty_table_idx_information PASSED [ 37%] tests/test__collection_api.py::CollectionAPITest::test__ensure_sparse_uniq_idxs_on_nested_field PASSED [ 38%] tests/test__collection_api.py::CollectionAPITest::test__ensure_uniq_idxs_on_nested_field PASSED [ 38%] tests/test__collection_api.py::CollectionAPITest::test__ensure_uniq_idxs_with_ascending_ordering SKIPPED [ 38%] tests/test__collection_api.py::CollectionAPITest::test__ensure_uniq_idxs_with_descending_ordering SKIPPED [ 38%] tests/test__collection_api.py::CollectionAPITest::test__ensure_uniq_idxs_without_ordering PASSED [ 38%] tests/test__collection_api.py::CollectionAPITest::test__filter_bson_regex SKIPPED [ 38%] tests/test__collection_api.py::CollectionAPITest::test__filter_eq_on_array PASSED [ 39%] tests/test__collection_api.py::CollectionAPITest::test__filter_ne_multiple_keys PASSED [ 39%] tests/test__collection_api.py::CollectionAPITest::test__filter_ne_on_array PASSED [ 39%] tests/test__collection_api.py::CollectionAPITest::test__filter_objects_comparison PASSED [ 39%] tests/test__collection_api.py::CollectionAPITest::test__filter_objects_comparison_unknown_type PASSED [ 39%] tests/test__collection_api.py::CollectionAPITest::test__filter_objects_nested_comparison PASSED [ 40%] tests/test__collection_api.py::CollectionAPITest::test__filter_on_dict PASSED [ 40%] tests/test__collection_api.py::CollectionAPITest::test__filter_unknown_op PASSED [ 40%] tests/test__collection_api.py::CollectionAPITest::test__filter_unknown_top_level PASSED [ 40%] tests/test__collection_api.py::CollectionAPITest::test__filter_with_ne PASSED [ 40%] tests/test__collection_api.py::CollectionAPITest::test__filter_with_ne_none PASSED [ 40%] tests/test__collection_api.py::CollectionAPITest::test__find_and_modify_cannot_remove_and_new PASSED [ 41%] tests/test__collection_api.py::CollectionAPITest::test__find_and_modify_cannot_remove_and_update PASSED [ 41%] tests/test__collection_api.py::CollectionAPITest::test__find_and_modify_no_projection_kwarg PASSED [ 41%] tests/test__collection_api.py::CollectionAPITest::test__find_and_modify_with_sort SKIPPED [ 41%] tests/test__collection_api.py::CollectionAPITest::test__find_and_project PASSED [ 41%] tests/test__collection_api.py::CollectionAPITest::test__find_and_project_3_level_deep_nested_field PASSED [ 42%] tests/test__collection_api.py::CollectionAPITest::test__find_and_project_positional PASSED [ 42%] tests/test__collection_api.py::CollectionAPITest::test__find_and_project_wrong_types PASSED [ 42%] tests/test__collection_api.py::CollectionAPITest::test__find_dict_in_nested_list PASSED [ 42%] tests/test__collection_api.py::CollectionAPITest::test__find_elemmatch_none PASSED [ 42%] tests/test__collection_api.py::CollectionAPITest::test__find_eq_none PASSED [ 43%] tests/test__collection_api.py::CollectionAPITest::test__find_in_empty_collection PASSED [ 43%] tests/test__collection_api.py::CollectionAPITest::test__find_in_not_a_list PASSED [ 43%] tests/test__collection_api.py::CollectionAPITest::test__find_one_and_delete PASSED [ 43%] tests/test__collection_api.py::CollectionAPITest::test__find_one_and_replace PASSED [ 43%] tests/test__collection_api.py::CollectionAPITest::test__find_one_and_update PASSED [ 43%] tests/test__collection_api.py::CollectionAPITest::test__find_one_and_update_doc_with_zero_ids PASSED [ 44%] tests/test__collection_api.py::CollectionAPITest::test__find_or PASSED [ 44%] tests/test__collection_api.py::CollectionAPITest::test__find_or_and PASSED [ 44%] tests/test__collection_api.py::CollectionAPITest::test__find_projection_with_subdoc_lists PASSED [ 44%] tests/test__collection_api.py::CollectionAPITest::test__find_projection_with_subdoc_lists_refinements PASSED [ 44%] tests/test__collection_api.py::CollectionAPITest::test__find_removed_and_changed_options PASSED [ 45%] tests/test__collection_api.py::CollectionAPITest::test__find_returns_cursors PASSED [ 45%] tests/test__collection_api.py::CollectionAPITest::test__find_too_far PASSED [ 45%] tests/test__collection_api.py::CollectionAPITest::test__find_too_much_nested PASSED [ 45%] tests/test__collection_api.py::CollectionAPITest::test__find_type_array PASSED [ 45%] tests/test__collection_api.py::CollectionAPITest::test__find_type_object PASSED [ 45%] tests/test__collection_api.py::CollectionAPITest::test__find_unimplemented_type PASSED [ 46%] tests/test__collection_api.py::CollectionAPITest::test__find_unknown_type PASSED [ 46%] tests/test__collection_api.py::CollectionAPITest::test__find_where PASSED [ 46%] tests/test__collection_api.py::CollectionAPITest::test__find_with_collation SKIPPED [ 46%] tests/test__collection_api.py::CollectionAPITest::test__find_with_max_time_ms PASSED [ 46%] tests/test__collection_api.py::CollectionAPITest::test__find_with_skip_param PASSED [ 47%] tests/test__collection_api.py::CollectionAPITest::test__get_collection_full_name PASSED [ 47%] tests/test__collection_api.py::CollectionAPITest::test__get_collection_read_concern_option PASSED [ 47%] tests/test__collection_api.py::CollectionAPITest::test__get_sibling_collection PASSED [ 47%] tests/test__collection_api.py::CollectionAPITest::test__get_subcollections PASSED [ 47%] tests/test__collection_api.py::CollectionAPITest::test__get_subcollections_by_attribute_underscore PASSED [ 47%] tests/test__collection_api.py::CollectionAPITest::test__getting_collection_via_getattr PASSED [ 48%] tests/test__collection_api.py::CollectionAPITest::test__getting_collection_via_getitem PASSED [ 48%] tests/test__collection_api.py::CollectionAPITest::test__insert PASSED [ 48%] tests/test__collection_api.py::CollectionAPITest::test__insert_empty_doc_idx_information PASSED [ 48%] tests/test__collection_api.py::CollectionAPITest::test__insert_empty_doc_twice_uniq_idx PASSED [ 48%] tests/test__collection_api.py::CollectionAPITest::test__insert_empty_doc_uniq_idx PASSED [ 49%] tests/test__collection_api.py::CollectionAPITest::test__insert_many PASSED [ 49%] tests/test__collection_api.py::CollectionAPITest::test__insert_many_type_error PASSED [ 49%] tests/test__collection_api.py::CollectionAPITest::test__insert_many_type_error_do_not_insert PASSED [ 49%] tests/test__collection_api.py::CollectionAPITest::test__insert_many_with_generator PASSED [ 49%] tests/test__collection_api.py::CollectionAPITest::test__insert_many_write_errors PASSED [ 50%] tests/test__collection_api.py::CollectionAPITest::test__insert_one PASSED [ 50%] tests/test__collection_api.py::CollectionAPITest::test__insert_one_type_error PASSED [ 50%] tests/test__collection_api.py::CollectionAPITest::test__insert_zero_timestamp SKIPPED [ 50%] tests/test__collection_api.py::CollectionAPITest::test__iterate_on_find_and_update PASSED [ 50%] tests/test__collection_api.py::CollectionAPITest::test__list_of_dates PASSED [ 50%] tests/test__collection_api.py::CollectionAPITest::test__mix_tz_naive_aware PASSED [ 51%] tests/test__collection_api.py::CollectionAPITest::test__not_implemented_methods PASSED [ 51%] tests/test__collection_api.py::CollectionAPITest::test__not_implemented_operator PASSED [ 51%] tests/test__collection_api.py::CollectionAPITest::test__ordered_insert_find PASSED [ 51%] tests/test__collection_api.py::CollectionAPITest::test__read_preference SKIPPED [ 51%] tests/test__collection_api.py::CollectionAPITest::test__read_preference_default PASSED [ 52%] tests/test__collection_api.py::CollectionAPITest::test__regex_options PASSED [ 52%] tests/test__collection_api.py::CollectionAPITest::test__remove_bad_write_concern PASSED [ 52%] tests/test__collection_api.py::CollectionAPITest::test__remove_retval PASSED [ 52%] tests/test__collection_api.py::CollectionAPITest::test__remove_write_concern PASSED [ 52%] tests/test__collection_api.py::CollectionAPITest::test__rename_collection PASSED [ 52%] tests/test__collection_api.py::CollectionAPITest::test__rename_collection_already_exists PASSED [ 53%] tests/test__collection_api.py::CollectionAPITest::test__rename_collection_drop_target PASSED [ 53%] tests/test__collection_api.py::CollectionAPITest::test__rename_collection_to_bad_names PASSED [ 53%] tests/test__collection_api.py::CollectionAPITest::test__rename_missing_field PASSED [ 53%] tests/test__collection_api.py::CollectionAPITest::test__rename_one_foo_to_bar PASSED [ 53%] tests/test__collection_api.py::CollectionAPITest::test__rename_unsupported PASSED [ 54%] tests/test__collection_api.py::CollectionAPITest::test__replace_invalid_encode_type SKIPPED [ 54%] tests/test__collection_api.py::CollectionAPITest::test__replace_one PASSED [ 54%] tests/test__collection_api.py::CollectionAPITest::test__replace_one_invalid PASSED [ 54%] tests/test__collection_api.py::CollectionAPITest::test__replace_one_upsert PASSED [ 54%] tests/test__collection_api.py::CollectionAPITest::test__save_class_deriving_from_dict PASSED [ 54%] tests/test__collection_api.py::CollectionAPITest::test__set_equals PASSED [ 55%] tests/test__collection_api.py::CollectionAPITest::test__set_replace_subdocument PASSED [ 55%] tests/test__collection_api.py::CollectionAPITest::test__set_replace_subdocument_positional_operator PASSED [ 55%] tests/test__collection_api.py::CollectionAPITest::test__set_union PASSED [ 55%] tests/test__collection_api.py::CollectionAPITest::test__set_with_positional_operator PASSED [ 55%] tests/test__collection_api.py::CollectionAPITest::test__sort_by_uuid PASSED [ 56%] tests/test__collection_api.py::CollectionAPITest::test__sort_mixed_types PASSED [ 56%] tests/test__collection_api.py::CollectionAPITest::test__strcmp_not_enough_params PASSED [ 56%] tests/test__collection_api.py::CollectionAPITest::test__string_matching PASSED [ 56%] tests/test__collection_api.py::CollectionAPITest::test__substr_not_enough_params PASSED [ 56%] tests/test__collection_api.py::CollectionAPITest::test__unwind_dict_options PASSED [ 56%] tests/test__collection_api.py::CollectionAPITest::test__unwind_include_array_index PASSED [ 57%] tests/test__collection_api.py::CollectionAPITest::test__unwind_no_prefix PASSED [ 57%] tests/test__collection_api.py::CollectionAPITest::test__unwind_not_array PASSED [ 57%] tests/test__collection_api.py::CollectionAPITest::test__unwind_preserve_null_and_empty_arrays PASSED [ 57%] tests/test__collection_api.py::CollectionAPITest::test__unwind_preserve_null_and_empty_arrays_on_nested PASSED [ 57%] tests/test__collection_api.py::CollectionAPITest::test__update_cannot_change__id PASSED [ 58%] tests/test__collection_api.py::CollectionAPITest::test__update_current_date PASSED [ 58%] tests/test__collection_api.py::CollectionAPITest::test__update_empty_id PASSED [ 58%] tests/test__collection_api.py::CollectionAPITest::test__update_id PASSED [ 58%] tests/test__collection_api.py::CollectionAPITest::test__update_interns_lists_and_dicts PASSED [ 58%] tests/test__collection_api.py::CollectionAPITest::test__update_invalid_encode_type SKIPPED [ 59%] tests/test__collection_api.py::CollectionAPITest::test__update_many PASSED [ 59%] tests/test__collection_api.py::CollectionAPITest::test__update_many_upsert PASSED [ 59%] tests/test__collection_api.py::CollectionAPITest::test__update_non_json_values PASSED [ 59%] tests/test__collection_api.py::CollectionAPITest::test__update_one PASSED [ 59%] tests/test__collection_api.py::CollectionAPITest::test__update_one_hint PASSED [ 59%] tests/test__collection_api.py::CollectionAPITest::test__update_one_invalid PASSED [ 60%] tests/test__collection_api.py::CollectionAPITest::test__update_one_no_change PASSED [ 60%] tests/test__collection_api.py::CollectionAPITest::test__update_one_unset_position PASSED [ 60%] tests/test__collection_api.py::CollectionAPITest::test__update_one_upsert PASSED [ 60%] tests/test__collection_api.py::CollectionAPITest::test__update_one_upsert_dots PASSED [ 60%] tests/test__collection_api.py::CollectionAPITest::test__update_one_upsert_invalid_filter PASSED [ 61%] tests/test__collection_api.py::CollectionAPITest::test__update_one_upsert_match_subdocuments PASSED [ 61%] tests/test__collection_api.py::CollectionAPITest::test__update_one_upsert_operators PASSED [ 61%] tests/test__collection_api.py::CollectionAPITest::test__update_pop PASSED [ 61%] tests/test__collection_api.py::CollectionAPITest::test__update_pop_empty PASSED [ 61%] tests/test__collection_api.py::CollectionAPITest::test__update_pop_large_index PASSED [ 61%] tests/test__collection_api.py::CollectionAPITest::test__update_pop_negative_index PASSED [ 62%] tests/test__collection_api.py::CollectionAPITest::test__update_pull_filter_operator PASSED [ 62%] tests/test__collection_api.py::CollectionAPITest::test__update_pull_filter_operator_on_subdocs PASSED [ 62%] tests/test__collection_api.py::CollectionAPITest::test__update_pull_in PASSED [ 62%] tests/test__collection_api.py::CollectionAPITest::test__update_push_array_of_arrays PASSED [ 62%] tests/test__collection_api.py::CollectionAPITest::test__update_push_negative_position PASSED [ 63%] tests/test__collection_api.py::CollectionAPITest::test__update_push_other_clauses PASSED [ 63%] tests/test__collection_api.py::CollectionAPITest::test__update_push_position PASSED [ 63%] tests/test__collection_api.py::CollectionAPITest::test__update_push_positional_nested_field PASSED [ 63%] tests/test__collection_api.py::CollectionAPITest::test__update_push_slice_from_the_end PASSED [ 63%] tests/test__collection_api.py::CollectionAPITest::test__update_push_slice_from_the_front PASSED [ 63%] tests/test__collection_api.py::CollectionAPITest::test__update_push_slice_nested_field PASSED [ 64%] tests/test__collection_api.py::CollectionAPITest::test__update_push_slice_only PASSED [ 64%] tests/test__collection_api.py::CollectionAPITest::test__update_push_slice_positional_nested_field PASSED [ 64%] tests/test__collection_api.py::CollectionAPITest::test__update_push_slice_to_zero PASSED [ 64%] tests/test__collection_api.py::CollectionAPITest::test__update_push_sort PASSED [ 64%] tests/test__collection_api.py::CollectionAPITest::test__update_push_sort_document PASSED [ 65%] tests/test__collection_api.py::CollectionAPITest::test__update_retval PASSED [ 65%] tests/test__collection_api.py::CollectionAPITest::test__with_options PASSED [ 65%] tests/test__collection_api.py::CollectionAPITest::test__with_options_different_read_concern PASSED [ 65%] tests/test__collection_api.py::CollectionAPITest::test__with_options_different_read_preference SKIPPED [ 65%] tests/test__collection_api.py::CollectionAPITest::test__with_options_different_write_concern PASSED [ 65%] tests/test__collection_api.py::CollectionAPITest::test__with_options_not_implemented PASSED [ 66%] tests/test__collection_api.py::CollectionAPITest::test__with_options_wrong_kwarg PASSED [ 66%] tests/test__collection_api.py::CollectionAPITest::test__with_options_wrong_type PASSED [ 66%] tests/test__collection_api.py::CollectionAPITest::test__write_concern PASSED [ 66%] tests/test__collection_api.py::CollectionAPITest::test_aggregate_unwind_push_first PASSED [ 66%] tests/test__collection_api.py::CollectionAPITest::test_cursor_returns_document_copies PASSED [ 67%] tests/test__collection_api.py::CollectionAPITest::test_datetime_precision PASSED [ 67%] tests/test__collection_api.py::CollectionAPITest::test_filter_not_bad_value PASSED [ 67%] tests/test__collection_api.py::CollectionAPITest::test_filter_not_regex PASSED [ 67%] tests/test__collection_api.py::CollectionAPITest::test_find_with_comment PASSED [ 67%] tests/test__collection_api.py::CollectionAPITest::test_find_with_expr PASSED [ 68%] tests/test__collection_api.py::CollectionAPITest::test_insert_bson_invalid_encode_type SKIPPED [ 68%] tests/test__collection_api.py::CollectionAPITest::test_insert_bson_validation SKIPPED [ 68%] tests/test__collection_api.py::CollectionAPITest::test_insert_many_bulk_write_error PASSED [ 68%] tests/test__collection_api.py::CollectionAPITest::test_insert_many_bulk_write_error_details SKIPPED [ 68%] tests/test__collection_api.py::CollectionAPITest::test_set_no_content PASSED [ 68%] tests/test__collection_api.py::CollectionAPITest::test_sparse_unique_index PASSED [ 69%] tests/test__collection_api.py::CollectionAPITest::test_sparse_unique_index_dup PASSED [ 69%] tests/test__collection_api.py::CollectionAPITest::test_unique_index_on_dict PASSED [ 69%] tests/test__collection_api.py::CollectionAPITest::test_unique_index_with_update PASSED [ 69%] tests/test__collection_api.py::CollectionAPITest::test_unique_index_with_update_on_nested_field PASSED [ 69%] tests/test__collection_api.py::CollectionAPITest::test_unique_index_with_upsert_insertion PASSED [ 70%] tests/test__database_api.py::DatabaseAPITest::test__codec_options SKIPPED [ 70%] tests/test__database_api.py::DatabaseAPITest::test__codec_options_without_pymongo PASSED [ 70%] tests/test__database_api.py::DatabaseAPITest::test__collection_names PASSED [ 70%] tests/test__database_api.py::DatabaseAPITest::test__command PASSED [ 70%] tests/test__database_api.py::DatabaseAPITest::test__command_fake_ping_string PASSED [ 70%] tests/test__database_api.py::DatabaseAPITest::test__command_ping PASSED [ 71%] tests/test__database_api.py::DatabaseAPITest::test__command_ping_string PASSED [ 71%] tests/test__database_api.py::DatabaseAPITest::test__create_collection PASSED [ 71%] tests/test__database_api.py::DatabaseAPITest::test__create_collection_bad_names PASSED [ 71%] tests/test__database_api.py::DatabaseAPITest::test__dereference PASSED [ 71%] tests/test__database_api.py::DatabaseAPITest::test__get_collection PASSED [ 72%] tests/test__database_api.py::DatabaseAPITest::test__get_collection_by_attribute_underscore PASSED [ 72%] tests/test__database_api.py::DatabaseAPITest::test__get_collection_different_codec_options SKIPPED [ 72%] tests/test__database_api.py::DatabaseAPITest::test__get_collection_different_read_preference SKIPPED [ 72%] tests/test__database_api.py::DatabaseAPITest::test__lazy_create_collection PASSED [ 72%] tests/test__database_api.py::DatabaseAPITest::test__list_collection_names PASSED [ 72%] tests/test__database_api.py::DatabaseAPITest::test__read_preference PASSED [ 73%] tests/test__database_api.py::DatabaseAPITest::test__rename_unknown_collection PASSED [ 73%] tests/test__database_api.py::DatabaseAPITest::test__repr PASSED [ 73%] tests/test__database_api.py::DatabaseAPITest::test__session PASSED [ 73%] tests/test__database_api.py::DatabaseAPITest::test__with_options PASSED [ 73%] tests/test__database_api.py::DatabaseAPITest::test__with_options_pymongo SKIPPED [ 74%] tests/test__diff.py::DiffTest::test__assert_no_diff PASSED [ 74%] tests/test__diff.py::DiffTest::test__composite_diff PASSED [ 74%] tests/test__diff.py::DiffTest::test__diff_sequences PASSED [ 74%] tests/test__diff.py::DiffTest::test__diff_values PASSED [ 74%] tests/test__gridfs.py::GridFsTest::test__delete_exists_big SKIPPED (...) [ 75%] tests/test__gridfs.py::GridFsTest::test__delete_exists_small SKIPPED [ 75%] tests/test__gridfs.py::GridFsTest::test__delete_no_file SKIPPED (pym...) [ 75%] tests/test__gridfs.py::GridFsTest::test__find_files SKIPPED (pymongo...) [ 75%] tests/test__gridfs.py::GridFsTest::test__list_files SKIPPED (pymongo...) [ 75%] tests/test__gridfs.py::GridFsTest::test__put_exists SKIPPED (pymongo...) [ 75%] tests/test__gridfs.py::GridFsTest::test__put_get_big SKIPPED (pymong...) [ 76%] tests/test__gridfs.py::GridFsTest::test__put_get_small SKIPPED (pymo...) [ 76%] tests/test__helpers.py::HashdictTest::test__hashdict PASSED [ 76%] tests/test__helpers.py::TestDeprecationWarning::test__deprecation_warning PASSED [ 76%] tests/test__helpers.py::TestAllUriScenarios::test_connection_string_test_valid-auth PASSED [ 76%] tests/test__helpers.py::TestAllUriScenarios::test_connection_string_test_valid-host_identifiers PASSED [ 77%] tests/test__helpers.py::TestAllUriScenarios::test_connection_string_test_valid-options PASSED [ 77%] tests/test__helpers.py::TestAllUriScenarios::test_connection_string_test_valid-unix_socket-absolute PASSED [ 77%] tests/test__helpers.py::TestAllUriScenarios::test_connection_string_test_valid-unix_socket-relative PASSED [ 77%] tests/test__helpers.py::TestAllUriScenarios::test_connection_string_test_valid-warnings PASSED [ 77%] tests/test__helpers.py::ValueByDotTest::test__get_value_by_dot_find_key PASSED [ 77%] tests/test__helpers.py::ValueByDotTest::test__get_value_by_dot_missing_key PASSED [ 78%] tests/test__helpers.py::ValueByDotTest::test__set_value_by_dot PASSED [ 78%] tests/test__helpers.py::ValueByDotTest::test__set_value_by_dot_bad_key PASSED [ 78%] tests/test__mongomock.py::InterfaceTest::test__bad_uri_raises PASSED [ 78%] tests/test__mongomock.py::InterfaceTest::test__can_create_db_with_multiple_pathes PASSED [ 78%] tests/test__mongomock.py::InterfaceTest::test__can_create_db_with_path PASSED [ 79%] tests/test__mongomock.py::InterfaceTest::test__can_create_db_without_path PASSED [ 79%] tests/test__mongomock.py::InterfaceTest::test__none_uri_host PASSED [ 79%] tests/test__mongomock.py::InterfaceTest::test__repr PASSED [ 79%] tests/test__mongomock.py::DatabaseGettingTest::test__alive PASSED [ 79%] tests/test__mongomock.py::DatabaseGettingTest::test__dereference PASSED [ 79%] tests/test__mongomock.py::DatabaseGettingTest::test__drop_database PASSED [ 80%] tests/test__mongomock.py::DatabaseGettingTest::test__drop_database_indexes PASSED [ 80%] tests/test__mongomock.py::DatabaseGettingTest::test__getting_database_via_getattr PASSED [ 80%] tests/test__mongomock.py::DatabaseGettingTest::test__getting_database_via_getitem PASSED [ 80%] tests/test__mongomock.py::DatabaseGettingTest::test__getting_default_database_invalid PASSED [ 80%] tests/test__mongomock.py::DatabaseGettingTest::test__getting_default_database_valid PASSED [ 81%] tests/test__mongomock.py::DatabaseGettingTest::test__sparse_unique_index PASSED [ 81%] tests/test__mongomock.py::CollectionMapReduceTest::test__inline_map_reduce SKIPPED [ 81%] tests/test__mongomock.py::CollectionMapReduceTest::test__inline_map_reduce_full_response SKIPPED [ 81%] tests/test__mongomock.py::CollectionMapReduceTest::test__map_reduce SKIPPED [ 81%] tests/test__mongomock.py::CollectionMapReduceTest::test__map_reduce_clean_res_colc SKIPPED [ 81%] tests/test__mongomock.py::CollectionMapReduceTest::test__map_reduce_full_response SKIPPED [ 82%] tests/test__mongomock.py::CollectionMapReduceTest::test__map_reduce_son SKIPPED [ 82%] tests/test__mongomock.py::CollectionMapReduceTest::test__map_reduce_with_limit SKIPPED [ 82%] tests/test__mongomock.py::CollectionMapReduceTest::test__map_reduce_with_object_id SKIPPED [ 82%] tests/test__mongomock.py::CollectionMapReduceTest::test__map_reduce_with_query SKIPPED [ 82%] tests/test__mongomock.py::CollectionMapReduceTest::test_mongomock_map_reduce SKIPPED [ 83%] tests/test__mongomock.py::_GroupTest::test__group1 SKIPPED (pymongo ...) [ 83%] tests/test__mongomock.py::_GroupTest::test__group2 SKIPPED (pymongo ...) [ 83%] tests/test__mongomock.py::_GroupTest::test__group3 SKIPPED (pymongo ...) [ 83%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate1 SKIPPED [ 83%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate10 SKIPPED [ 84%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate11 SKIPPED [ 84%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate12 SKIPPED [ 84%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate13 SKIPPED [ 84%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate14 SKIPPED [ 84%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate17 SKIPPED [ 84%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate18 SKIPPED [ 85%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate19 SKIPPED [ 85%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate2 SKIPPED [ 85%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate20 SKIPPED [ 85%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate21 SKIPPED [ 85%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate22 SKIPPED [ 86%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate23 SKIPPED [ 86%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate24 SKIPPED [ 86%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate25 SKIPPED [ 86%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate26 SKIPPED [ 86%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate27 SKIPPED [ 86%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate27b SKIPPED [ 87%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate28 SKIPPED [ 87%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate29 SKIPPED [ 87%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate3 SKIPPED [ 87%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate30 SKIPPED [ 87%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate31 SKIPPED [ 88%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate32 SKIPPED [ 88%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate33 SKIPPED [ 88%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate34 SKIPPED [ 88%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate35 SKIPPED [ 88%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate4 SKIPPED [ 88%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate5 SKIPPED [ 89%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate6 SKIPPED [ 89%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate7 SKIPPED [ 89%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate8 SKIPPED [ 89%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate9 SKIPPED [ 89%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_add_fields SKIPPED [ 90%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_add_to_set_missing_value SKIPPED [ 90%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_bucket SKIPPED [ 90%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_bug_473 SKIPPED [ 90%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_cond_mongodb_to_bool SKIPPED [ 90%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_count SKIPPED [ 90%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_date_operators SKIPPED [ 91%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_facet SKIPPED [ 91%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_filter SKIPPED [ 91%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_group_by_dbref SKIPPED [ 91%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_in SKIPPED [ 91%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_lookup_dot_in_local_field SKIPPED [ 92%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_no_entries SKIPPED [ 92%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_on_no_data SKIPPED [ 92%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_project_array_subfield SKIPPED [ 92%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_project_exclude_id_in_inclusion SKIPPED [ 92%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_project_exclude_in_exclusion SKIPPED [ 93%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_project_id_0 SKIPPED [ 93%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_project_include_in_inclusion SKIPPED [ 93%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_project_rotate SKIPPED [ 93%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_project_with_subfields SKIPPED [ 93%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_project_with_subfields_exclude SKIPPED [ 93%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_slice SKIPPED [ 94%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_subtract_dates SKIPPED [ 94%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_switch SKIPPED [ 94%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_switch_mongodb_to_bool SKIPPED [ 94%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_system_variables SKIPPED [ 94%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_to_decimal SKIPPED [ 95%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_unwind_options SKIPPED [ 95%] tests/test__mongomock.py::MongoClientAggregateTest::test__aggregate_unwind_project_id SKIPPED [ 95%] tests/test__mongomock.py::MongoClientAggregateTest::test__insert_date_with_timezone SKIPPED [ 95%] tests/test__mongomock.py::MongoClientAggregateTest::test__replace_root SKIPPED [ 95%] tests/test__mongomock.py::MongoClientAggregateTest::test__replace_root_new_document SKIPPED [ 95%] tests/test__mongomock.py::MongoClientAggregateTest::test_aggregate_array_to_object SKIPPED [ 96%] tests/test__mongomock.py::MongoClientAggregateTest::test_aggregate_date_to_string SKIPPED [ 96%] tests/test__mongomock.py::MongoClientAggregateTest::test_aggregate_project_with_missing_subfields SKIPPED [ 96%] tests/test__mongomock.py::MongoClientAggregateTest::test_aggregate_to_int SKIPPED [ 96%] tests/test__mongomock.py::MongoClientAggregateTest::test_aggregate_to_string SKIPPED [ 96%] tests/test__mongomock.py::InsertedDocumentTest::test__data_is_copied PASSED [ 97%] tests/test__mongomock.py::InsertedDocumentTest::test__find_by_id PASSED [ 97%] tests/test__mongomock.py::InsertedDocumentTest::test__find_returns_copied_object PASSED [ 97%] tests/test__mongomock.py::InsertedDocumentTest::test__inserting_changes_argument PASSED [ 97%] tests/test__mongomock.py::InsertedDocumentTest::test__object_is_consistent PASSED [ 97%] tests/test__mongomock.py::InsertedDocumentTest::test__remove_by_id PASSED [ 97%] tests/test__mongomock.py::ObjectIdTest::test__equal_with_same_id PASSED [ 98%] tests/test__mongomock.py::DatabasesNamesTest::test__database_names PASSED [ 98%] tests/test__patch.py::PatchTest::test__create_new SKIPPED (pymongo n...) [ 98%] tests/test__patch.py::PatchTest::test__create_servers SKIPPED (pymon...) [ 98%] tests/test__patch.py::PatchTest::test__create_timeout SKIPPED (pymon...) [ 98%] tests/test__patch.py::PatchTest::test__decorator SKIPPED (pymongo no...) [ 99%] tests/test__patch.py::PatchTest::test__different_default_db SKIPPED [ 99%] tests/test__patch.py::PatchTest::test__error_new SKIPPED (pymongo no...) [ 99%] tests/test__patch.py::PatchTest::test__rename_through_another_client SKIPPED [ 99%] tests/test__patch.py::PatchTest::test__tuple_server_host_and_port SKIPPED [ 99%] tests/test__readme_doctest.py::ReadMeDocTest::test__readme_doctests PASSED [100%] =============================== warnings summary =============================== mongomock/aggregate.py:1161 /builddir/build/BUILD/mongomock-3.20.0/mongomock/aggregate.py:1161: SyntaxWarning: "is not" with a literal. Did you mean "!="? if (method == 'include') == (include_id is not False and include_id is not 0): tests/test__bulk_operations.py::BulkOperationsTest::test__insert tests/test__bulk_operations.py::BulkOperationsTest::test__remove tests/test__bulk_operations.py::BulkOperationsTest::test__remove_one tests/test__bulk_operations.py::BulkOperationsTest::test__update_one tests/test__bulk_operations.py::BulkOperationsTest::test_update tests/test__bulk_operations.py::BulkOperationsTest::test_upsert_replace_one tests/test__bulk_operations.py::BulkOperationsTest::test_upsert_update tests/test__bulk_operations.py::BulkOperationsTest::test_upsert_update_on_empty_set tests/test__bulk_operations.py::BulkOperationsTest::test_upsert_update_one /builddir/build/BUILD/mongomock-3.20.0/tests/test__bulk_operations.py:72: DeprecationWarning: count is deprecated. Use estimated_document_count or count_documents instead. Please note that $where must be replaced by $expr, $near must be replaced by $geoWithin with $center, and $nearSphere must be replaced by $geoWithin with $centerSphere has_count = self.db.collection.count() tests/test__bulk_operations.py: 17 warnings /builddir/build/BUILD/mongomock-3.20.0/tests/test__bulk_operations.py:44: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. found_num = self.db.collection.find(doc).count() tests/test__bulk_operations.py::BulkOperationsTest::test__remove /builddir/build/BUILD/mongomock-3.20.0/tests/test__bulk_operations.py:130: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'a': 2, 'b': 1}) tests/test__bulk_operations.py::BulkOperationsTest::test__remove /builddir/build/BUILD/mongomock-3.20.0/tests/test__bulk_operations.py:131: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'a': 2, 'b': 2}) tests/test__bulk_operations.py::BulkOperationsTest::test__remove_one /builddir/build/BUILD/mongomock-3.20.0/tests/test__bulk_operations.py:139: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'a': 2, 'b': 1}) tests/test__bulk_operations.py::BulkOperationsTest::test__remove_one /builddir/build/BUILD/mongomock-3.20.0/tests/test__bulk_operations.py:140: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'a': 2, 'b': 2}) tests/test__bulk_operations.py::BulkOperationsTest::test__update_must_update_all_documents /builddir/build/BUILD/mongomock-3.20.0/tests/test__bulk_operations.py:99: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'a': 1, 'b': 2}) tests/test__bulk_operations.py::BulkOperationsTest::test__update_must_update_all_documents /builddir/build/BUILD/mongomock-3.20.0/tests/test__bulk_operations.py:100: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'a': 2, 'b': 4}) tests/test__bulk_operations.py::BulkOperationsTest::test__update_must_update_all_documents /builddir/build/BUILD/mongomock-3.20.0/tests/test__bulk_operations.py:101: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'a': 2, 'b': 8}) tests/test__bulk_operations.py::BulkOperationsTest::test__update_one /builddir/build/BUILD/mongomock-3.20.0/tests/test__bulk_operations.py:121: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'a': 2, 'b': 1}) tests/test__bulk_operations.py::BulkOperationsTest::test__update_one /builddir/build/BUILD/mongomock-3.20.0/tests/test__bulk_operations.py:122: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'a': 2, 'b': 2}) tests/test__bulk_operations.py::BulkOperationsTest::test_upsert_replace_one /builddir/build/BUILD/mongomock-3.20.0/tests/test__bulk_operations.py:154: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'a': 2, 'b': 1}) tests/test__bulk_operations.py::BulkOperationsTest::test_upsert_replace_one /builddir/build/BUILD/mongomock-3.20.0/tests/test__bulk_operations.py:155: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'a': 2, 'b': 2}) tests/test__bulk_operations.py::BulkOperationsTest::test_upsert_update /builddir/build/BUILD/mongomock-3.20.0/tests/test__bulk_operations.py:170: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'a': 2, 'b': 1}) tests/test__bulk_operations.py::BulkOperationsTest::test_upsert_update /builddir/build/BUILD/mongomock-3.20.0/tests/test__bulk_operations.py:171: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'a': 2, 'b': 2}) tests/test__bulk_operations.py::BulkOperationsTest::test_upsert_update_one /builddir/build/BUILD/mongomock-3.20.0/tests/test__bulk_operations.py:178: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'a': 2, 'b': 1}) tests/test__bulk_operations.py::BulkOperationsTest::test_upsert_update_one /builddir/build/BUILD/mongomock-3.20.0/tests/test__bulk_operations.py:179: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'a': 2, 'b': 1}) tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_out tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_out_no_entries tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_out_replace tests/test__collection_api.py::CollectionAPITest::test_aggregate_unwind_push_first /builddir/build/BUILD/mongomock-3.20.0/mongomock/aggregate.py:1205: DeprecationWarning: count is deprecated. Use estimated_document_count or count_documents instead. Please note that $where must be replaced by $expr, $near must be replaced by $geoWithin with $center, and $nearSphere must be replaced by $geoWithin with $centerSphere if out_collection.count() > 0: tests/test__collection_api.py::CollectionAPITest::test__aggregate_project_out_replace /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:4037: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. new_collection.insert({'_id': 3}) tests/test__collection_api.py::CollectionAPITest::test__aggregate_string_operations /builddir/build/BUILD/mongomock-3.20.0/mongomock/aggregate.py:374: UserWarning: Negative starting point given to $substr is accepted only until MongoDB 3.7. This behavior will change in the future. warnings.warn('Negative starting point given to $substr is accepted only until ' tests/test__collection_api.py::CollectionAPITest::test__aggregate_string_operations /builddir/build/BUILD/mongomock-3.20.0/mongomock/aggregate.py:378: UserWarning: Negative length given to $substr is accepted only until MongoDB 3.7. This behavior will change in the future. warnings.warn('Negative length given to $substr is accepted only until ' tests/test__collection_api.py::CollectionAPITest::test__all_elemmatch /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:4053: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert([ tests/test__collection_api.py::CollectionAPITest::test__avoid_change_data_after_set /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1723: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'_id': 1}) tests/test__collection_api.py::CollectionAPITest::test__avoid_change_data_after_set /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1724: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead. self.db.collection.update({'_id': 1}, {'$set': test_data}) tests/test__collection_api.py::CollectionAPITest::test__avoid_change_data_after_set /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1726: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead. self.db.collection.update( tests/test__collection_api.py::CollectionAPITest::test__cannot_save_non_string_keys tests/test__collection_api.py::CollectionAPITest::test__cannot_save_non_string_keys tests/test__collection_api.py::CollectionAPITest::test__cannot_save_non_string_keys tests/test__collection_api.py::CollectionAPITest::test__cannot_save_non_string_keys /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:312: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead self.db.col1.save({key: 'value'}) tests/test__collection_api.py: 12 warnings /builddir/build/BUILD/mongomock-3.20.0/mongomock/collection.py:1334: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. return self.insert(to_save) tests/test__collection_api.py::CollectionAPITest::test__collection_is_indexable /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1133: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead self.db['def'].save({'name': 'test1'}) tests/test__collection_api.py::CollectionAPITest::test__collection_is_indexable /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1134: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertTrue(self.db['def'].find({'name': 'test1'}).count() > 0) tests/test__collection_api.py::CollectionAPITest::test__configure_client_tz_aware tests/test__collection_api.py::CollectionAPITest::test__configure_client_tz_aware /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:2010: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. objid = db.collection.insert({'date_aware': aware, 'date_naive': naive}) tests/test__collection_api.py::CollectionAPITest::test__count /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:440: DeprecationWarning: count is deprecated. Use estimated_document_count or count_documents instead. Please note that $where must be replaced by $expr, $near must be replaced by $geoWithin with $center, and $nearSphere must be replaced by $geoWithin with $centerSphere self.assertEqual(self.db.collection.count(), 3) tests/test__collection_api.py::CollectionAPITest::test__count /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:441: DeprecationWarning: count is deprecated. Use estimated_document_count or count_documents instead. Please note that $where must be replaced by $expr, $near must be replaced by $geoWithin with $center, and $nearSphere must be replaced by $geoWithin with $centerSphere self.assertEqual(self.db.collection.count({'s': 0}), 2) tests/test__collection_api.py::CollectionAPITest::test__count /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:442: DeprecationWarning: count is deprecated. Use estimated_document_count or count_documents instead. Please note that $where must be replaced by $expr, $near must be replaced by $geoWithin with $center, and $nearSphere must be replaced by $geoWithin with $centerSphere self.assertEqual(self.db.collection.count({'s': 1}), 1) tests/test__collection_api.py::CollectionAPITest::test__create_idx_information /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1513: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({}) tests/test__collection_api.py::CollectionAPITest::test__create_uniq_idxs_with_dupes_already_there /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1468: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'value': 1}) tests/test__collection_api.py::CollectionAPITest::test__create_uniq_idxs_with_dupes_already_there /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1469: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'value': 1}) tests/test__collection_api.py::CollectionAPITest::test__create_uniq_idxs_with_dupes_already_there /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1474: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'value': 1}) tests/test__collection_api.py::CollectionAPITest::test__create_uniq_idxs_with_dupes_already_there /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1475: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(self.db.collection.find({}).count(), 3) tests/test__collection_api.py::CollectionAPITest::test__create_uniq_idxs_without_ordering /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1285: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'value': 1}) tests/test__collection_api.py::CollectionAPITest::test__create_uniq_idxs_without_ordering /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1287: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'value': 1}) tests/test__collection_api.py::CollectionAPITest::test__create_uniq_idxs_without_ordering /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1289: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(self.db.collection.find({}).count(), 1) tests/test__collection_api.py::CollectionAPITest::test__cursor_alive tests/test__collection_api.py::CollectionAPITest::test__cursor_alive /builddir/build/BUILD/mongomock-3.20.0/mongomock/collection.py:1943: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. return self._emitted != self.count() tests/test__collection_api.py::CollectionAPITest::test__cursor_clone /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:213: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert([{'a': 'b'}, {'b': 'c'}, {'c': 'd'}]) tests/test__collection_api.py::CollectionAPITest::test__cursor_clone_keep_limit_skip /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:227: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert([{'a': 'b'}, {'b': 'c'}, {'c': 'd'}]) tests/test__collection_api.py::CollectionAPITest::test__cursor_count_when_db_changes /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1176: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db['coll_name'].insert({}) tests/test__collection_api.py::CollectionAPITest::test__cursor_count_when_db_changes /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1178: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db['coll_name'].insert({}) tests/test__collection_api.py::CollectionAPITest::test__cursor_count_when_db_changes /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1179: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(cursor.count(), 2) tests/test__collection_api.py::CollectionAPITest::test__cursor_count_with_limit /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1150: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db['coll_name'].insert([first, second, third]) tests/test__collection_api.py::CollectionAPITest::test__cursor_count_with_limit /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1152: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. 2).count(with_limit_and_skip=True) tests/test__collection_api.py::CollectionAPITest::test__cursor_count_with_limit /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1155: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. 0).count(with_limit_and_skip=True) tests/test__collection_api.py::CollectionAPITest::test__cursor_count_with_skip /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1162: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db['coll_name'].insert([first, second, third]) tests/test__collection_api.py::CollectionAPITest::test__cursor_count_with_skip /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1164: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. 1).count(with_limit_and_skip=True) tests/test__collection_api.py::CollectionAPITest::test__cursor_count_with_skip_init /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1171: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db['coll_name'].insert([first, second, third]) tests/test__collection_api.py::CollectionAPITest::test__cursor_count_with_skip_init /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1172: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. count = self.db['coll_name'].find(skip=1).count(with_limit_and_skip=True) tests/test__collection_api.py::CollectionAPITest::test__cursor_distinct /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1141: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db['coll_name'].insert([larry_bob, larry, gary]) tests/test__collection_api.py::CollectionAPITest::test__cursor_getitem /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1192: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db['coll_name'].insert([first, second, third]) tests/test__collection_api.py::CollectionAPITest::test__cursor_getitem_bad_index /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1223: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db['coll_name'].insert([first, second, third]) tests/test__collection_api.py::CollectionAPITest::test__cursor_getitem_negative_index /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1214: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db['coll_name'].insert([first, second, third]) tests/test__collection_api.py::CollectionAPITest::test__cursor_getitem_slice /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1201: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db['coll_name'].insert([first, second, third]) tests/test__collection_api.py::CollectionAPITest::test__cursor_getitem_slice /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1205: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. count = cursor.count() tests/test__collection_api.py::CollectionAPITest::test__cursor_getitem_slice /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1207: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. count = cursor.count(with_limit_and_skip=True) tests/test__collection_api.py::CollectionAPITest::test__cursor_getitem_when_db_changes /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1182: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db['coll_name'].insert({}) tests/test__collection_api.py::CollectionAPITest::test__cursor_getitem_when_db_changes /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1184: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db['coll_name'].insert({}) tests/test__collection_api.py::CollectionAPITest::test__cursor_hint /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:168: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'f1': {'f2': 'v'}}) tests/test__collection_api.py::CollectionAPITest::test__cursor_rewind /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:2120: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. coll.insert({'a': 1}) tests/test__collection_api.py::CollectionAPITest::test__cursor_rewind /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:2121: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. coll.insert({'a': 2}) tests/test__collection_api.py::CollectionAPITest::test__cursor_rewind /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:2122: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. coll.insert({'a': 3}) tests/test__collection_api.py::CollectionAPITest::test__cursor_sort_kept_after_clone /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1659: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'time_check': float(time.time())}) tests/test__collection_api.py::CollectionAPITest::test__cursor_sort_kept_after_clone /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1660: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'time_check': float(time.time())}) tests/test__collection_api.py::CollectionAPITest::test__cursor_sort_kept_after_clone /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1661: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'time_check': float(time.time())}) tests/test__collection_api.py::CollectionAPITest::test__distinct_array_field /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:185: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert( tests/test__collection_api.py::CollectionAPITest::test__distinct_array_nested_field /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:191: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'f1': [{'f2': 'v'}, {'f2': 'w'}]}) tests/test__collection_api.py::CollectionAPITest::test__distinct_filter_field /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:204: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert([{'f1': 'v1', 'k1': 'v1'}, {'f1': 'v2', 'k1': 'v1'}, tests/test__collection_api.py::CollectionAPITest::test__distinct_nested_field /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:180: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'f1': {'f2': 'v'}}) tests/test__collection_api.py::CollectionAPITest::test__drop_collection /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:115: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. r = col.insert({'aa': 'bb'}) tests/test__collection_api.py::CollectionAPITest::test__drop_collection /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:117: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(qr.count(), 1) tests/test__collection_api.py::CollectionAPITest::test__drop_collection /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:121: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(qr.count(), 0) tests/test__collection_api.py::CollectionAPITest::test__drop_collection /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:124: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. r = col.insert({'aa': 'bb'}) tests/test__collection_api.py::CollectionAPITest::test__drop_collection /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:126: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(qr.count(), 1) tests/test__collection_api.py::CollectionAPITest::test__drop_collection /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:132: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(qr.count(), 0) tests/test__collection_api.py::CollectionAPITest::test__drop_collection_indexes /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:143: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. col.insert({'value': 'not_unique_but_ok', 'sparsed': 'not_unique_but_ok'}) tests/test__collection_api.py::CollectionAPITest::test__drop_collection_indexes /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:144: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. col.insert({'value': 'not_unique_but_ok'}) tests/test__collection_api.py::CollectionAPITest::test__drop_collection_indexes /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:145: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. col.insert({'sparsed': 'not_unique_but_ok'}) tests/test__collection_api.py::CollectionAPITest::test__drop_collection_indexes /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:147: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(result.count(), 3) tests/test__collection_api.py::CollectionAPITest::test__drop_n_recreate_collection /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:152: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. col_a.insert({'foo': 'bar'}) tests/test__collection_api.py::CollectionAPITest::test__drop_n_recreate_collection /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:153: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(col_a.find().count(), 1) tests/test__collection_api.py::CollectionAPITest::test__drop_n_recreate_collection /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:154: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(col_a2.find().count(), 1) tests/test__collection_api.py::CollectionAPITest::test__drop_n_recreate_collection /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:155: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(self.db.a.find().count(), 1) tests/test__collection_api.py::CollectionAPITest::test__drop_n_recreate_collection /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:158: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(col_a.find().count(), 0) tests/test__collection_api.py::CollectionAPITest::test__drop_n_recreate_collection /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:159: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(col_a2.find().count(), 0) tests/test__collection_api.py::CollectionAPITest::test__drop_n_recreate_collection /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:160: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(self.db.a.find().count(), 0) tests/test__collection_api.py::CollectionAPITest::test__drop_n_recreate_collection /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:162: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. col_a2.insert({'foo2': 'bar2'}) tests/test__collection_api.py::CollectionAPITest::test__drop_n_recreate_collection /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:163: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(col_a.find().count(), 1) tests/test__collection_api.py::CollectionAPITest::test__drop_n_recreate_collection /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:164: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(col_a2.find().count(), 1) tests/test__collection_api.py::CollectionAPITest::test__drop_n_recreate_collection /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:165: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(self.db.a.find().count(), 1) tests/test__collection_api.py::CollectionAPITest::test__ensure_sparse_uniq_idxs_on_nested_field /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1365: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({}) tests/test__collection_api.py::CollectionAPITest::test__ensure_sparse_uniq_idxs_on_nested_field /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1366: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({}) tests/test__collection_api.py::CollectionAPITest::test__ensure_sparse_uniq_idxs_on_nested_field /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1367: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'c': 1}) tests/test__collection_api.py::CollectionAPITest::test__ensure_sparse_uniq_idxs_on_nested_field /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1368: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'a': 1}) tests/test__collection_api.py::CollectionAPITest::test__ensure_sparse_uniq_idxs_on_nested_field /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1369: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'a': {'b': 1}}) tests/test__collection_api.py::CollectionAPITest::test__ensure_sparse_uniq_idxs_on_nested_field /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1371: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'a': {'b': 1}}) tests/test__collection_api.py::CollectionAPITest::test__ensure_sparse_uniq_idxs_on_nested_field /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1373: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'c': 1}) tests/test__collection_api.py::CollectionAPITest::test__ensure_sparse_uniq_idxs_on_nested_field /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1375: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(self.db.collection.find({}).count(), 5) tests/test__collection_api.py::CollectionAPITest::test__ensure_uniq_idxs_on_nested_field /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1354: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'a': 1}) tests/test__collection_api.py::CollectionAPITest::test__ensure_uniq_idxs_on_nested_field /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1355: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'a': {'b': 1}}) tests/test__collection_api.py::CollectionAPITest::test__ensure_uniq_idxs_on_nested_field /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1357: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'a': {'b': 1}}) tests/test__collection_api.py::CollectionAPITest::test__ensure_uniq_idxs_on_nested_field /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1359: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(self.db.collection.find({}).count(), 2) tests/test__collection_api.py::CollectionAPITest::test__ensure_uniq_idxs_without_ordering /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1380: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'value': 1}) tests/test__collection_api.py::CollectionAPITest::test__ensure_uniq_idxs_without_ordering /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1382: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'value': 1}) tests/test__collection_api.py::CollectionAPITest::test__ensure_uniq_idxs_without_ordering /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1384: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(self.db.collection.find({}).count(), 1) tests/test__collection_api.py::CollectionAPITest::test__filter_with_ne /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1734: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'_id': 1, 'test_list': [{'data': 'val'}]}) tests/test__collection_api.py::CollectionAPITest::test__find_and_modify_cannot_remove_and_new /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:509: DeprecationWarning: find_and_modify is deprecated, use find_one_and_delete, find_one_and_replace, or find_one_and_update instead self.db.collection.find_and_modify({}, remove=True, new=True) tests/test__collection_api.py::CollectionAPITest::test__find_and_modify_cannot_remove_and_update /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:513: DeprecationWarning: find_and_modify is deprecated, use find_one_and_delete, find_one_and_replace, or find_one_and_update instead self.db.collection.find_and_modify({'a': 2}, {'a': 3}, remove=True) tests/test__collection_api.py::CollectionAPITest::test__find_and_modify_no_projection_kwarg /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:536: DeprecationWarning: find_and_modify is deprecated, use find_one_and_delete, find_one_and_replace, or find_one_and_update instead self.db.collection.find_and_modify({'a': 2}, {'a': 3}, projection=['a']) tests/test__collection_api.py::CollectionAPITest::test__find_and_project /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1836: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'_id': 1, 'a': 42, 'b': 'other', 'c': {'d': 'nested'}}) tests/test__collection_api.py::CollectionAPITest::test__find_and_project_3_level_deep_nested_field /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1786: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'_id': 1, 'a': {'b': {'c': 2}}}) tests/test__collection_api.py::CollectionAPITest::test__find_and_project_positional /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1859: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'_id': 1, 'a': [{'b': 1}, {'b': 2}]}) tests/test__collection_api.py::CollectionAPITest::test__find_and_project_wrong_types /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1792: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'_id': 1, 'a': {'b': {'c': 2}}}) tests/test__collection_api.py::CollectionAPITest::test__find_with_skip_param /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1233: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db['users'].insert([u1, u2]) tests/test__collection_api.py::CollectionAPITest::test__find_with_skip_param /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1237: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. ('name', 1)], skip=1).count(with_limit_and_skip=True), 1) tests/test__collection_api.py::CollectionAPITest::test__insert /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:331: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'a': 1}) tests/test__collection_api.py::CollectionAPITest::test__insert /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:334: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert([{'a': 2}, {'a': 3}]) tests/test__collection_api.py::CollectionAPITest::test__insert /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:337: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert( tests/test__collection_api.py::CollectionAPITest::test__insert /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:341: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'a': 4}, w=1) tests/test__collection_api.py::CollectionAPITest::test__insert_empty_doc_idx_information /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1485: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({}) tests/test__collection_api.py::CollectionAPITest::test__insert_empty_doc_twice_uniq_idx /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1397: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({}) tests/test__collection_api.py::CollectionAPITest::test__insert_empty_doc_twice_uniq_idx /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1399: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({}) tests/test__collection_api.py::CollectionAPITest::test__insert_empty_doc_twice_uniq_idx /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1401: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(self.db.collection.find({}).count(), 1) tests/test__collection_api.py::CollectionAPITest::test__insert_empty_doc_uniq_idx /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1389: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'value': 1}) tests/test__collection_api.py::CollectionAPITest::test__insert_empty_doc_uniq_idx /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1390: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({}) tests/test__collection_api.py::CollectionAPITest::test__insert_empty_doc_uniq_idx /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1392: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(self.db.collection.find({}).count(), 2) tests/test__collection_api.py::CollectionAPITest::test__iterate_on_find_and_update /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:679: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(cursor.count(), 4) tests/test__collection_api.py::CollectionAPITest::test__iterate_on_find_and_update /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:686: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(cursor.count(), 0) tests/test__collection_api.py::CollectionAPITest::test__iterate_on_find_and_update /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:688: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(cursor.count(), 4) tests/test__collection_api.py::CollectionAPITest::test__mix_tz_naive_aware /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1985: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'date_aware': aware, 'date_naive': naive}) tests/test__collection_api.py: 20 warnings /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1253: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'_id': val}) tests/test__collection_api.py::CollectionAPITest::test__remove_bad_write_concern /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:277: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead. self.db.col.remove({'a': 1}, bad_kwarg=1) tests/test__collection_api.py::CollectionAPITest::test__remove_retval /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:262: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead self.db.col.save({'a': 1}) tests/test__collection_api.py::CollectionAPITest::test__remove_retval /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:263: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead. retval = self.db.col.remove({'a': 1}) tests/test__collection_api.py::CollectionAPITest::test__remove_retval /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:270: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead. self.assertEqual(self.db.col.remove({'bla': 1})['n'], 0) tests/test__collection_api.py::CollectionAPITest::test__remove_write_concern /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:273: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead. self.db.col.remove({'a': 1}, w=None, wtimeout=None, j=None, fsync=None) tests/test__collection_api.py::CollectionAPITest::test__rename_collection /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:2087: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'_id': 1, 'test_list': [{'data': 'val'}]}) tests/test__collection_api.py::CollectionAPITest::test__replace_one /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1041: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'a': 1, 'b': 2}) tests/test__collection_api.py::CollectionAPITest::test__save_class_deriving_from_dict /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:296: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead self.collection.save(self) tests/test__collection_api.py::CollectionAPITest::test__set_replace_subdocument /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1595: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert(base_document) tests/test__collection_api.py::CollectionAPITest::test__set_replace_subdocument /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1596: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead. self.db.collection.update( tests/test__collection_api.py::CollectionAPITest::test__set_replace_subdocument /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1600: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead. self.db.collection.update( tests/test__collection_api.py::CollectionAPITest::test__set_replace_subdocument_positional_operator /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1619: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert(base_document) tests/test__collection_api.py::CollectionAPITest::test__set_replace_subdocument_positional_operator /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1620: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead. self.db.collection.update( tests/test__collection_api.py::CollectionAPITest::test__set_with_positional_operator /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1568: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert(base_document) tests/test__collection_api.py::CollectionAPITest::test__set_with_positional_operator /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1569: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead. self.db.collection.update({'int_field': 1, 'list_field.str_field': 'b'}, tests/test__collection_api.py::CollectionAPITest::test__set_with_positional_operator /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1576: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead. self.db.collection.update({'int_field': 1, 'list_field.str_field': 'a'}, tests/test__collection_api.py::CollectionAPITest::test__set_with_positional_operator /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1579: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead. self.db.collection.update({'int_field': 1, 'list_field.str_field': 'c'}, tests/test__collection_api.py::CollectionAPITest::test__string_matching /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1127: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead self.db['abc'].save({'name': 'test1'}) tests/test__collection_api.py::CollectionAPITest::test__string_matching /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1128: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead self.db['abc'].save({'name': 'test2'}) tests/test__collection_api.py::CollectionAPITest::test__update_cannot_change__id /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:703: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'_id': 1, 'a': 1}) tests/test__collection_api.py::CollectionAPITest::test__update_cannot_change__id /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:705: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead. self.db.collection.update({'_id': 1}, {'_id': 2, 'b': 2}) tests/test__collection_api.py::CollectionAPITest::test__update_empty_id /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:708: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead self.db.collection.save({'_id': '', 'a': 1}) tests/test__collection_api.py::CollectionAPITest::test__update_interns_lists_and_dicts /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:692: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead obj_id = self.db.collection.save(obj) tests/test__collection_api.py::CollectionAPITest::test__update_interns_lists_and_dicts /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:695: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead. self.db.collection.update({'_id': obj_id}, {'d': d, 'l': l}) tests/test__collection_api.py::CollectionAPITest::test__update_pop /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1017: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'name': 'bob', 'hat': ['green', 'tall']}) tests/test__collection_api.py::CollectionAPITest::test__update_pop_empty /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1035: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'name': 'bob', 'hat': []}) tests/test__collection_api.py::CollectionAPITest::test__update_pop_large_index /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1029: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'name': 'bob', 'hat': [['green', 'tall']]}) tests/test__collection_api.py::CollectionAPITest::test__update_pop_negative_index /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1023: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'name': 'bob', 'hat': ['green', 'tall']}) tests/test__collection_api.py::CollectionAPITest::test__update_retval /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:250: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead self.db.col.save({'a': 1}) tests/test__collection_api.py::CollectionAPITest::test__update_retval /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:251: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead. retval = self.db.col.update({'a': 1}, {'b': 2}) tests/test__collection_api.py::CollectionAPITest::test__update_retval /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:259: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead. self.assertEqual(self.db.col.update({'bla': 1}, {'bla': 2})['n'], 0) tests/test__collection_api.py::CollectionAPITest::test_cursor_returns_document_copies /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:242: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert(obj) tests/test__collection_api.py::CollectionAPITest::test_datetime_precision /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1959: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. objid = self.db.collection.insert({'date_too_precise': too_precise_dt, 'date': mongo_dt}) tests/test__collection_api.py::CollectionAPITest::test_sparse_unique_index /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1406: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({}) tests/test__collection_api.py::CollectionAPITest::test_sparse_unique_index /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1407: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({}) tests/test__collection_api.py::CollectionAPITest::test_sparse_unique_index /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1408: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'value': None}) tests/test__collection_api.py::CollectionAPITest::test_sparse_unique_index /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1409: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'value': None}) tests/test__collection_api.py::CollectionAPITest::test_sparse_unique_index /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1411: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(self.db.collection.find({}).count(), 4) tests/test__collection_api.py::CollectionAPITest::test_sparse_unique_index_dup /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1461: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'value': 'a'}) tests/test__collection_api.py::CollectionAPITest::test_sparse_unique_index_dup /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1463: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.db.collection.insert({'value': 'a'}) tests/test__collection_api.py::CollectionAPITest::test_sparse_unique_index_dup /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1465: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(self.db.collection.find({}).count(), 1) tests/test__collection_api.py::CollectionAPITest::test_unique_index_with_update /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1433: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead self.db.collection.save({'_id': 1, 'value': 1}) tests/test__collection_api.py::CollectionAPITest::test_unique_index_with_update /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1434: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead self.db.collection.save({'_id': 2, 'value': 2}) tests/test__collection_api.py::CollectionAPITest::test_unique_index_with_update /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1437: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead. self.db.collection.update({'value': 1}, {'value': 2}) tests/test__collection_api.py::CollectionAPITest::test_unique_index_with_update_on_nested_field /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1442: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead self.db.collection.save({'_id': 1, 'a': {'b': 1}}) tests/test__collection_api.py::CollectionAPITest::test_unique_index_with_update_on_nested_field /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1443: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead self.db.collection.save({'_id': 2, 'a': {'b': 2}}) tests/test__collection_api.py::CollectionAPITest::test_unique_index_with_update_on_nested_field /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1446: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead. self.db.collection.update({'_id': 1}, {'$set': {'a.b': 2}}) tests/test__collection_api.py::CollectionAPITest::test_unique_index_with_upsert_insertion /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1416: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead self.db.collection.save({'_id': 1, 'value': 1}) tests/test__collection_api.py::CollectionAPITest::test_unique_index_with_upsert_insertion /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1418: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead self.db.collection.save({'_id': 1, 'value': 1}) tests/test__collection_api.py::CollectionAPITest::test_unique_index_with_upsert_insertion /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1419: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead. self.db.collection.update({'value': 1}, {'value': 1}, upsert=True) tests/test__collection_api.py::CollectionAPITest::test_unique_index_with_upsert_insertion /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1422: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead self.db.collection.save({'value': 1}) tests/test__collection_api.py::CollectionAPITest::test_unique_index_with_upsert_insertion /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1424: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead. self.db.collection.update({'bad': 'condition'}, {'value': 1}, upsert=True) tests/test__collection_api.py::CollectionAPITest::test_unique_index_with_upsert_insertion /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1426: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead self.db.collection.save({'_id': 2, 'value': 1}) tests/test__collection_api.py::CollectionAPITest::test_unique_index_with_upsert_insertion /builddir/build/BUILD/mongomock-3.20.0/tests/test__collection_api.py:1428: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead. self.db.collection.update({'_id': 2}, {'$set': {'value': 1}}, upsert=True) tests/test__database_api.py::DatabaseAPITest::test__collection_names /builddir/build/BUILD/mongomock-3.20.0/mongomock/database.py:64: UserWarning: collection_names is deprecated. Use list_collection_names instead. warnings.warn('collection_names is deprecated. Use list_collection_names instead.') tests/test__database_api.py::DatabaseAPITest::test__lazy_create_collection /builddir/build/BUILD/mongomock-3.20.0/tests/test__database_api.py:189: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. col.insert({'foo': 'bar'}) tests/test__helpers.py::TestDeprecationWarning::test__deprecation_warning /builddir/build/BUILD/mongomock-3.20.0/mongomock/helpers.py:53: DeprecationWarning: 'aaa' has been deprecated to be in line with pymongo implementation, a new parameter 'bbb' should be used instead. the old parameter will be kept for backward compatibility purposes. warnings.warn( tests/test__mongomock.py::DatabaseGettingTest::test__dereference /builddir/build/BUILD/mongomock-3.20.0/tests/test__mongomock.py:162: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. collection.insert(to_insert) tests/test__mongomock.py::DatabaseGettingTest::test__drop_database /builddir/build/BUILD/mongomock-3.20.0/tests/test__mongomock.py:109: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. doc_id = collection.insert({'aa': 'bb'}) tests/test__mongomock.py::DatabaseGettingTest::test__drop_database /builddir/build/BUILD/mongomock-3.20.0/tests/test__mongomock.py:111: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(result.count(), 1) tests/test__mongomock.py::DatabaseGettingTest::test__drop_database /builddir/build/BUILD/mongomock-3.20.0/tests/test__mongomock.py:115: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(result.count(), 0) tests/test__mongomock.py::DatabaseGettingTest::test__drop_database /builddir/build/BUILD/mongomock-3.20.0/tests/test__mongomock.py:120: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. doc_id = collection.insert({'aa': 'bb'}) tests/test__mongomock.py::DatabaseGettingTest::test__drop_database /builddir/build/BUILD/mongomock-3.20.0/tests/test__mongomock.py:122: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(result.count(), 1) tests/test__mongomock.py::DatabaseGettingTest::test__drop_database /builddir/build/BUILD/mongomock-3.20.0/tests/test__mongomock.py:126: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(result.count(), 0) tests/test__mongomock.py::DatabaseGettingTest::test__drop_database_indexes /builddir/build/BUILD/mongomock-3.20.0/tests/test__mongomock.py:138: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. collection.insert({'value': 'not_unique_but_ok', 'sparsed': 'not_unique_but_ok'}) tests/test__mongomock.py::DatabaseGettingTest::test__drop_database_indexes /builddir/build/BUILD/mongomock-3.20.0/tests/test__mongomock.py:139: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. collection.insert({'value': 'not_unique_but_ok'}) tests/test__mongomock.py::DatabaseGettingTest::test__drop_database_indexes /builddir/build/BUILD/mongomock-3.20.0/tests/test__mongomock.py:140: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. collection.insert({'sparsed': 'not_unique_but_ok'}) tests/test__mongomock.py::DatabaseGettingTest::test__drop_database_indexes /builddir/build/BUILD/mongomock-3.20.0/tests/test__mongomock.py:142: DeprecationWarning: count is deprecated. Use Collection.count_documents instead. self.assertEqual(result.count(), 3) tests/test__mongomock.py::DatabaseGettingTest::test__sparse_unique_index /builddir/build/BUILD/mongomock-3.20.0/tests/test__mongomock.py:149: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. collection.insert({'value': 'should_be_unique'}) tests/test__mongomock.py::DatabaseGettingTest::test__sparse_unique_index /builddir/build/BUILD/mongomock-3.20.0/tests/test__mongomock.py:150: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. collection.insert({'simple': 'simple_without_value'}) tests/test__mongomock.py::DatabaseGettingTest::test__sparse_unique_index /builddir/build/BUILD/mongomock-3.20.0/tests/test__mongomock.py:151: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. collection.insert({'simple': 'simple_without_value2'}) tests/test__mongomock.py::InsertedDocumentTest::test__data_is_copied tests/test__mongomock.py::InsertedDocumentTest::test__find_by_id tests/test__mongomock.py::InsertedDocumentTest::test__find_returns_copied_object tests/test__mongomock.py::InsertedDocumentTest::test__inserting_changes_argument tests/test__mongomock.py::InsertedDocumentTest::test__object_is_consistent tests/test__mongomock.py::InsertedDocumentTest::test__remove_by_id /builddir/build/BUILD/mongomock-3.20.0/tests/test__mongomock.py:3415: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.object_id = self.collection.insert(self.data) tests/test__mongomock.py::InsertedDocumentTest::test__remove_by_id /builddir/build/BUILD/mongomock-3.20.0/tests/test__mongomock.py:3426: DeprecationWarning: remove is deprecated. Use delete_one or delete_many instead. self.collection.remove(self.object_id) tests/test__mongomock.py::InsertedDocumentTest::test__remove_by_id /builddir/build/BUILD/mongomock-3.20.0/tests/test__mongomock.py:3427: DeprecationWarning: count is deprecated. Use estimated_document_count or count_documents instead. Please note that $where must be replaced by $expr, $near must be replaced by $geoWithin with $center, and $nearSphere must be replaced by $geoWithin with $centerSphere self.assertEqual(0, self.collection.count()) tests/test__mongomock.py::DatabasesNamesTest::test__database_names /builddir/build/BUILD/mongomock-3.20.0/tests/test__mongomock.py:3467: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.client.unit.tests.insert({'foo': 'bar'}) tests/test__mongomock.py::DatabasesNamesTest::test__database_names /builddir/build/BUILD/mongomock-3.20.0/tests/test__mongomock.py:3468: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead. self.client.foo.bar.insert({'unit': 'test'}) tests/test__mongomock.py::DatabasesNamesTest::test__database_names /builddir/build/BUILD/mongomock-3.20.0/mongomock/mongo_client.py:112: UserWarning: database_names is deprecated. Use list_database_names instead. warnings.warn('database_names is deprecated. Use list_database_names instead.') -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======== 400 passed, 144 skipped, 196 deselected, 281 warnings in 0.95s ======== + RPM_EC=0 ++ jobs -p + exit 0 Processing files: python3-mongomock-3.20.0-8.fc38.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.QAnM3d + umask 022 + cd /builddir/build/BUILD + cd mongomock-3.20.0 + DOCDIR=/builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/share/doc/python3-mongomock + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/share/doc/python3-mongomock + cp -pr README.rst /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/share/doc/python3-mongomock + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.jvn2oH + umask 022 + cd /builddir/build/BUILD + cd mongomock-3.20.0 + LICENSEDIR=/builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/share/licenses/python3-mongomock + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/share/licenses/python3-mongomock + cp -pr LICENSE /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64/usr/share/licenses/python3-mongomock + RPM_EC=0 ++ jobs -p + exit 0 Provides: python-mongomock = 3.20.0-8.fc38 python3-mongomock = 3.20.0-8.fc38 python3.11-mongomock = 3.20.0-8.fc38 python3.11dist(mongomock) = 3.20 python3dist(mongomock) = 3.20 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: python(abi) = 3.11 python3.11dist(sentinels) python3.11dist(six) Obsoletes: python-mongomock < 3.20.0-8.fc38 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64 Wrote: /builddir/build/RPMS/python3-mongomock-3.20.0-8.fc38.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.5nXQO5 + umask 022 + cd /builddir/build/BUILD + cd mongomock-3.20.0 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-mongomock-3.20.0-8.fc38.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.LlWH8c + umask 022 + cd /builddir/build/BUILD + rm -rf mongomock-3.20.0 mongomock-3.20.0.gemspec + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0