emnllm
2e4af1d38f
removes the month field from the chronological listing
2019-06-25 19:00:37 +00:00
emnllm
b3e9db62e1
improves chronological listing (year, month), adds test
2019-06-25 18:22:58 +00:00
Fabien C. Y. Benureau
232158db68
Merge branch 'master' into pr-191
2019-06-07 13:04:25 +09:00
Fabien C. Y. Benureau
e4665f734a
git plugin: addressed review + misc improvments
...
* fixed annoying recursion in exception handlers (fake_env and sand_env)
* "pubs git" always not quiet
* color option for git ouput through "pubs git"
* "pubs git" output without any "info:" prefix or extraneous new line.
* is_loaded() method for plugins
2019-06-05 17:00:51 +09:00
ksunden
994b4da69c
Check full output, not just year
2019-05-09 17:58:27 -05:00
ksunden
7ba016e54c
TST: Test contents of import, not that the command fails
2019-05-09 17:37:42 -05:00
Fabien C. Y. Benureau
6c929dbafa
fix tests for python 2.7
2019-05-06 00:04:04 +09:00
Fabien C. Y. Benureau
5dd65ffa03
fix tests
2019-05-05 23:33:24 +09:00
Fabien C. Y. Benureau
0df52efcd3
adding tests to git plugin
...
- git plugin now performs `git init`
- git call are checked
- only one git commit per pubs command
- SandboxedCommandTestCase for real hd usecase tests.
- `git --help` now documents `--config` and `--force-colors`
2019-05-05 23:12:21 +09:00
Olivier Mangin
3b6751ea1b
Minor: Removes duplicate mock import in test_usecase
2019-03-19 22:14:07 -07:00
Shane Stone
7645b0949c
Add test for pubs list using citekey filter in test_usecase.py
2019-03-17 16:11:32 -07:00
Shane Stone
d626fe4251
Add unit tests for CitekeyFilter
2019-03-06 15:17:31 -07:00
Olivier Mangin
c3cb713ae7
Fix test broken likely by pyyaml update by making it more explicit
...
- does not test a specific output from pyyaml dump anymore,
- explicitely check decode and encode-decode step.
2019-02-28 22:51:27 -08:00
Olivier Mangin
3a4acb9fa9
Partial fix for #188
2019-01-17 22:40:18 -08:00
Olivier Mangin
03dc4f192b
Fix test not passing because of bytestring on python 2.7
2019-01-17 21:15:53 -08:00
Olivier Mangin
c8352fb7df
Fixes test not passing because bitexparser's latex_to_unicode also normalizes
2019-01-14 23:00:41 -08:00
Olivier Mangin
fbc9b94f8d
Fix 177: convert latex to unicode before printing one-liner.
...
This commit actually introduces a new method on the paper object to
return a copy of the bibdata which entries' latex have been converted to
unicode.
2019-01-14 22:03:53 -08:00
Fabien C. Y. Benureau
7818e57ead
reduce the number of isbn test to avoid 403 status
2019-01-05 23:47:18 +09:00
Fabien C. Y. Benureau
9bf88649a3
fix #172
2019-01-05 01:06:44 +09:00
Fabien C. Y. Benureau
6865e29d15
fix for Python 2
2019-01-05 00:45:25 +09:00
Fabien C. Y. Benureau
b99c5b43fa
handle / in citekeys
2019-01-04 23:17:54 +09:00
Olivier Mangin
da70d3c381
Handles listing papers with documents without extension.
2018-09-26 22:44:48 -07:00
Fabien C. Y. Benureau
49e6c7d9c2
update tests
2018-08-28 17:37:35 +09:00
Fabien C. Y. Benureau
a58f1b1d5e
hotfix for #164
2018-08-27 11:52:52 +09:00
Fabien C. Y. Benureau
efb91b1ff4
hotfix for #165
2018-08-27 11:47:25 +09:00
Olivier Mangin
42d75d1230
Merge branch 'master' into fix/doc_add
2018-08-20 13:25:40 +02:00
Olivier Mangin
c2e52ec4c4
Makes 'copy' the default for the add_doc
configuration option.
2018-08-20 12:18:23 +02:00
Olivier Mangin
c4bf5eef87
Merge branch 'master' into jma/arxiv
2018-08-14 13:23:44 +02:00
Fabien C. Y. Benureau
8e30ac7400
refix test + switch apis to https
2018-08-14 17:35:59 +09:00
Fabien C. Y. Benureau
0eb069c86a
fix test + sorted json
2018-08-14 17:20:23 +09:00
Fabien C. Y. Benureau
30a7094eaf
add arXiv tests
2018-08-14 17:05:11 +09:00
Olivier Mangin
7dae35e722
Adds the statistics command. ( Fixes #8 )
2018-08-09 23:48:29 +02:00
Olivier Mangin
a8de97c327
Fixes #144 : behavior of add_copy mode during add.
...
- correctly handles add_copy mode and configuration,
- add option top force 'copy' mode (since the default had been changed
in between from 'copy' to 'move' this is now needed),
- fixes assumption in one test that the default is 'copy' (in other
words the test was broken and ensuring that the functionality was broken
too.),
- do not try to delete the source when it is an URL.
2018-08-09 19:00:01 +02:00
Fabien C. Y. Benureau
c62d1c3c50
move test data from pickle to json
2018-08-09 19:51:40 +09:00
Fabien C. Y. Benureau
fdb6e5541d
Add explanation for how mock work. Fix pickle protocol error for Python 2.7.
2018-08-07 11:48:28 +09:00
Fabien C. Y. Benureau
bf1b4cd9d7
mock mode for test_apis
...
The mock system relies on the PUBS_TESTS_MODE environmental variable.
See the `tests/mock_requests.py` code for details.
By defaults, fast mock tests are used with data pre-fetched from real
calls.
2018-08-07 11:30:13 +09:00
Fabien C. Y. Benureau
be80e75cbb
better error message when parsing of bibtex fails
...
Plus, slight refactoring: remove `databroker.verify()` method
2018-08-06 17:45:30 +09:00
Fabien C. Y. Benureau
938a53b8f5
python setup.py test + no connection case
...
- Make `python setup.py test work`. remove test/requirements.txt.
fix #154
- Detect if no connection is present, and skip tests if not.
stop-gap measure for issue #147
2018-08-06 11:20:50 +09:00
Fabien C. Y. Benureau
647fea8ddb
update doi fail test, fix isbn test
2018-08-05 22:16:01 +09:00
Fabien C. Y. Benureau
be253f9084
handling of arxiv errors
2018-08-05 22:08:00 +09:00
Fabien C. Y. Benureau
bf46702374
pytest fixes
...
pytest will automatically run/collect anything that begins with "test".
Renamed a few thing to avoid false positive.
2018-08-05 22:07:23 +09:00
Olivier Mangin
6e72b0e2f7
Merge branch 'master' into jma/arxiv
2018-08-02 12:01:10 +02:00
Olivier Mangin
ea2bc7f732
Merge branch 'master' into fix87
2018-08-01 15:02:01 +02:00
Olivier Mangin
3d76501a5c
Merge branch 'master' into fix/pyfakefs37
2018-08-01 14:36:24 +02:00
Fabien C. Y. Benureau
cf97f681ef
cleanup commented code, better reset_fs()
2018-08-01 14:37:23 +09:00
Fabien C. Y. Benureau
c76c7607f9
Upgrade pyfakefs to current version
...
Fix #148 . Also did some cleanup on the tests.
2018-08-01 14:22:18 +09:00
Olivier Mangin
5a47150aad
Adds option to ignore malformed bibtex files or entry during import.
2018-07-30 18:24:56 +02:00
Olivier Mangin
60650b874a
Addresses minor comments (error message and better test).
2018-07-30 17:46:04 +02:00
Olivier Mangin
8a7d143261
Improves behaviors related to bibtex decoding error.
...
- from editor input in add and edit commands,
- from files in import command.
2018-07-25 22:20:14 +02:00
Olivier Mangin
d8dc386a18
Fix fake input behavior in tests on unexpected input.
...
Because of the mechanism for catching exceptions in pubs, the
UnexpectedInput exception raised by FakeInput never reached the catch
statement in the CommandTestCase and raised a FakeSystemExit instead.
This commit monkey-patches the exception handler in the ui at the same
time as the patching of the input functions to ignore UnexptectedInput
at the ui level.
2018-07-25 19:59:23 +02:00