Exclude tests in pymongo 2.5 that depend on MongoDB
This commit is contained in:
parent
4bb61f8271
commit
bfca7fdc50
@ -12,7 +12,7 @@
|
||||
|
||||
Name: python-pymongo
|
||||
Version: 2.5
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Python driver for MongoDB
|
||||
|
||||
Group: Development/Languages
|
||||
@ -167,24 +167,71 @@ rm -rf %{buildroot}
|
||||
|
||||
%check
|
||||
# Exclude tests that require an active MongoDB connection
|
||||
exclude='(^test_binary$'
|
||||
exclude='(^test_auth_from_uri$'
|
||||
exclude+='|^test_auto_auth_login$'
|
||||
exclude+='|^test_auto_reconnect_exception_when_read_preference_is_secondary$'
|
||||
exclude+='|^test_auto_start_request$'
|
||||
exclude+='(^test_binary$'
|
||||
exclude+='|^test_collection$'
|
||||
exclude+='|^test_common$'
|
||||
exclude+='|^test_config_ssl$'
|
||||
exclude+='|^test_connect$'
|
||||
exclude+='|^test_connection$'
|
||||
exclude+='|^test_constants$'
|
||||
exclude+='|^test_contextlib$'
|
||||
exclude+='|^test_copy_db$'
|
||||
exclude+='|^test_cursor$'
|
||||
exclude+='|^test_database$'
|
||||
exclude+='|^test_database_names$'
|
||||
exclude+='|^test_delegated_auth$'
|
||||
exclude+='|^test_disconnect$'
|
||||
exclude+='|^test_document_class$'
|
||||
exclude+='|^test_drop_database$'
|
||||
exclude+='|^test_equality$'
|
||||
exclude+='|^test_fork$'
|
||||
exclude+='|^test_from_uri$'
|
||||
exclude+='|^test_fsync_lock_unlock$'
|
||||
exclude+='|^test_get_db$'
|
||||
exclude+='|^test_getters$'
|
||||
exclude+='|^test_grid_file$'
|
||||
exclude+='|^test_gridfs$'
|
||||
exclude+='|^test_host_w_port$'
|
||||
exclude+='|^test_interrupt_signal$'
|
||||
exclude+='|^test_ipv6$'
|
||||
exclude+='|^test_iteration$'
|
||||
exclude+='|^test_json_util$'
|
||||
exclude+='|^test_kill_cursor_explicit_primary$'
|
||||
exclude+='|^test_kill_cursor_explicit_secondary$'
|
||||
exclude+='|^test_master_slave_connection$'
|
||||
exclude+='|^test_nested_request$'
|
||||
exclude+='|^test_network_timeout$'
|
||||
exclude+='|^test_network_timeout_validation$'
|
||||
exclude+='|^test_operation_failure_with_request$'
|
||||
exclude+='|^test_operation_failure_without_request$'
|
||||
exclude+='|^test_operations$'
|
||||
exclude+='|^test_pinned_member$'
|
||||
exclude+='|^test_pooling$'
|
||||
exclude+='|^test_pooling_gevent$'
|
||||
exclude+='|^test_properties$'
|
||||
exclude+='|^test_pymongo$'
|
||||
exclude+='|^test_read_preferences$'
|
||||
exclude+='|^test_replica_set_connection$'
|
||||
exclude+='|^test_replica_set_connection_alias$'
|
||||
exclude+='|^test_repr$'
|
||||
exclude+='|^test_request_threads$'
|
||||
exclude+='|^test_safe_insert$'
|
||||
exclude+='|^test_safe_update$'
|
||||
exclude+='|^test_schedule_refresh$'
|
||||
exclude+='|^test_server_disconnect$'
|
||||
exclude+='|^test_son_manipulator$'
|
||||
exclude+='|^test_threading$'
|
||||
exclude+='|^test_threads$'
|
||||
exclude+='|^test_threads_replica_set_connection$'
|
||||
exclude+='|^test_timeouts$'
|
||||
exclude+='|^test_tz_aware$'
|
||||
exclude+='|^test_uri_options$'
|
||||
exclude+='|^test_use_greenlets$'
|
||||
exclude+='|^test_with_start_request$'
|
||||
exclude+=')'
|
||||
pushd test
|
||||
truncate --size=0 __init__.py
|
||||
@ -192,6 +239,9 @@ nosetests --exclude="$exclude"
|
||||
popd
|
||||
|
||||
%changelog
|
||||
* Wed Apr 24 2013 Andrew McNabb <amcnabb@mcnabbs.org> - 2.5-2
|
||||
- Exclude tests in pymongo 2.5 that depend on MongoDB
|
||||
|
||||
* Mon Apr 22 2013 Andrew McNabb <amcnabb@mcnabbs.org> - 2.5-1
|
||||
- Update to PyMongo 2.5 (bug #954152)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user