Shay Palachi
f6073a3ddf
working on memory core locking + tests
...
Memory core is now thread safe
extend memory core tests
added checkdocs
2020-11-26 13:48:03 +02:00
Charles Tapley Hoyt
67d425e3e7
Add "in memory" backend
...
Closes #6
Still needs unit tests
Update memory_core.py
Add tests for memory core
@shaypal5 these are copied from the pickle tests, the only one failing is test_memory_being_calculated. I could use your help with the implementation of the relevant function becuase I don't think I understand the threading part
2020-11-25 14:02:41 +02:00
Charles Tapley Hoyt
000f3212d9
Make code more abstract to pick from many future possible backends
...
Add stubs for redis and memory
References #4 and references #6
Make default compatible with previous interface
Now, the default is calculated dynamically to maintain previous behavior to default to pickle unless the ``mongetter`` argument is given. This makes it have the same behavior as before, so users aren't forced to change old code to use the ``backend`` argument
Update docs
Add tests
2020-11-25 14:02:41 +02:00
Nico Andrade
5afa69098c
Remove prints and a comment
2020-10-08 16:02:07 -04:00
Nico Andrade
adc9143f3a
Update test_mongo_core.py
2020-10-08 16:00:14 -04:00
Nico Andrade
3c339cb927
Add prints to follow the flow in CI
2020-10-05 13:09:29 -04:00
Nico Andrade
101fbbf046
Add prints to follow the flow in CI
2020-10-05 12:44:05 -04:00
Nico Andrade
7f2b0dc35c
Update test for slow timeout
2020-10-02 21:51:21 -04:00
Nico Andrade
cbd515c430
Update test documentation
2020-10-02 19:12:31 -04:00
Nico Andrade
3ab1a8d2b4
Add calculation timeout in MongoDB handler to avoid deadlocks
2020-10-02 19:10:30 -04:00
Nico Andrade
a676ad422d
Add calculation timeout in MongoDB handler to avoid deadlocks
2020-10-02 18:54:50 -04:00
Nico Andrade
466f7669b4
Add calculation timeout in MongoDB handler to avoid deadlocks
2020-10-02 18:15:51 -04:00
Alison Marczewski
17ed76a159
Creating tests for hash_params in get_entry methods (pickle and mongo cores)
2020-03-10 01:07:16 -03:00
Alison Marczewski
b6cce34d0d
Changing test_mongo_core test script for the new param
2020-03-08 17:31:20 -03:00
Shay Palachy
5f15026ba4
fixed deepsource.io issues
2019-12-09 17:21:56 +02:00
Shay Palachy
376aade8ae
added cache_dir argument for custom cach dir paths
2019-12-03 14:39:54 +02:00
Shay Palachy
8786caa99b
try to fix bad_cache_file test
2019-12-03 13:36:42 +02:00
Shay Palachy
60e69083bf
try to fix delete_cache_file test
2019-12-03 12:55:44 +02:00
Shay Palachy
c3d2da9e32
fixing more code issues
2019-09-07 12:35:19 +03:00
Shay Palachy
5f6e3a6a98
fixing
2019-09-07 12:29:18 +03:00
Shay Palachy
9167b796c9
passing python2 tests: from __future__ import print_function
2019-09-07 12:19:48 +03:00
Shay Palachy
b6ac1bb191
ignoring versioneer in deepsource + retryWrites=False in MongoClient constructor
2019-09-07 11:45:45 +03:00
Shay Palachy
98101ce79f
fixing python versions 3
2019-07-13 19:53:42 +03:00
Shay Palachy
9100c4004f
fixing python versions
2019-07-13 19:41:22 +03:00
Shay Palachy
0572705d15
softer requirement for test_bad_cache_file
2019-07-13 16:20:43 +03:00
Shay Palachy
cf9df66e02
trying to fix osx and windows tests 2
2019-07-13 15:20:05 +03:00
Shay Palachy
02de39e326
trying to fix osx and windows tests
2019-07-13 15:17:25 +03:00
Shay Palachy
998233b97b
trying to make test_stale_after_next_time pass consistently on python 2.7
2019-01-29 13:00:23 +02:00
Shay Palachy
8c47550486
cleaned up test code, added pymongo to test dependencies
2019-01-29 12:53:17 +02:00
mira
5210a0d12f
added tests for mongo_core pending calculation
2018-10-16 23:54:17 +02:00
mira
8be1c81205
added tests
2018-10-16 23:00:58 +02:00
Shay Palachy
fb202aaf3e
safer timing for mongo being_calc test
2017-04-26 12:30:09 +03:00
Shay Palachy
13c3ca756e
fixed test
2017-04-26 11:50:23 +03:00
Shay Palachy
d02d9850c6
fixed test
2017-04-26 11:45:52 +03:00
Shay Palachy
1d5114cd21
removed folder deletetion line - not needed and buggy on travis
2017-04-26 11:42:12 +03:00
Shay Palachy
88542cf8fb
coverage upped to ~93%
2017-04-26 11:31:34 +03:00
Shay Palachy
9ba68115ce
python 2.7 compatible mongo core tests
2017-04-25 00:39:04 +03:00
Shay Palachy
949d625010
test collection per python version - to make parallet travis tests possible
2017-04-25 00:24:07 +03:00
Shay Palachy
6039d383b1
mongo core test coverage at 100%
2017-04-25 00:12:12 +03:00
Shay Palachy
54249a9741
small optimization and a fix for python2.7 on travis
2017-04-20 14:22:53 +03:00
Shay Palachy
46962a39f6
removed repoze.lru test dependency for python 2.7
2017-04-20 12:14:17 +03:00
Shay Palachy
7cf96f8726
shaping things up
2017-04-20 11:22:26 +03:00
Shay Palachy
7afa411e59
python 2 compatibility
2016-12-05 22:29:33 +02:00
Shay Palachy
6934c688e2
tests are now a bit organized
2016-12-04 14:51:30 +02:00
Shay Palachy
a45190b2a6
added keywords to overwrite or ignore cache
2016-09-15 17:29:38 +03:00
Shay Palachy
391cef6c59
logic fix
2016-08-29 00:47:31 +03:00
Shay Palachy
db69ef2f00
fixed bug reading empty pickle file
2016-08-28 23:02:42 +03:00
Shay Palachy
cd872bba85
stale-free functionality + thread-safe
2016-08-28 18:41:37 +03:00
Shay Palachy
5f229cbcba
first code commit. Basic functionality
2016-08-25 21:10:31 +03:00