14 Commits

Author SHA1 Message Date
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
b99c5b43fa
handle / in citekeys 2019-01-04 23:17:54 +09:00
Fabien C. Y. Benureau
efb91b1ff4
hotfix for #165 2018-08-27 11:47:25 +09:00
Fabien C. Y. Benureau
30a7094eaf
add arXiv tests 2018-08-14 17:05:11 +09: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
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
Olivier Mangin
6e72b0e2f7
Merge branch 'master' into jma/arxiv 2018-08-02 12:01:10 +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
Joe Antognini
f3c83668f9 Allow bibtex to be added from arxiv id.
This allows the user to add a reference via an arXiv ID similarly to how a reference can be added
from a DOI or ISBN.  If the arXiv ID has a DOI associated with it (according to the arXiv server),
the DOI will be used.  If it does not (perhaps the paper is unpublished), then a bibtex entry will
automatically be generated from the reference's metadata.

Note that a potential issue with this addition is that if a paper is added before it is published
(i.e., there is no DOI associated with it), and the paper is later published, the updated
information will have to be manually added.
2018-07-23 18:23:36 -06:00
Olivier Mangin
da6f07c6c9 Adds basic API test for DOI and ISBN. 2017-07-22 15:42:12 -04:00