Olivier Mangin
de7644f90a
Merge pull request #160 from pubs/feat/stats
...
Adds the statistics command. (Fixes #8 )
7 years ago
Fabien C. Y. Benureau
51aa9795fd
add 3.7 tests
7 years ago
Fabien C. Y. Benureau
8e30ac7400
refix test + switch apis to https
7 years ago
Fabien C. Y. Benureau
0eb069c86a
fix test + sorted json
7 years ago
Fabien C. Y. Benureau
30a7094eaf
add arXiv tests
7 years ago
Olivier Mangin
7dae35e722
Adds the statistics command. ( Fixes #8 )
7 years ago
Olivier Mangin
7d1c678d3d
Adds changelog entry
7 years ago
Olivier Mangin
8eef7bd77b
Remove code duplication for command arguments.
7 years ago
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.
7 years ago
Fabien C. Y. Benureau
c62d1c3c50
move test data from pickle to json
7 years ago
Fabien C. Y. Benureau
fdb6e5541d
Add explanation for how mock work. Fix pickle protocol error for Python 2.7.
7 years ago
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.
7 years ago
Fabien C. Y. Benureau
be80e75cbb
better error message when parsing of bibtex fails
...
Plus, slight refactoring: remove `databroker.verify()` method
7 years ago
Fabien C. Y. Benureau
69f760cac6
dev_requirements.txt + explanation
7 years ago
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
7 years ago
Fabien C. Y. Benureau
814ce1bde2
remove timespec argument from isoformat (introduced in 3.6)
7 years ago
Fabien C. Y. Benureau
647fea8ddb
update doi fail test, fix isbn test
7 years ago
Fabien C. Y. Benureau
be253f9084
handling of arxiv errors
7 years ago
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.
7 years ago
Fabien C. Y. Benureau
20c5ed7446
Merge pull request #146 from joe-antognini/jma/arxiv
...
Arxiv support for pubs add.
7 years ago
J. Antognini
d6ab091e5c
Only allow one of doi, arxiv, or isbn to pubs_add
...
Also includes some minor refactoring.
7 years ago
Olivier Mangin
6e72b0e2f7
Merge branch 'master' into jma/arxiv
7 years ago
Olivier Mangin
01b0358f2c
Version 0.8.0.
7 years ago
Olivier Mangin
c6edacf3ec
Merge pull request #149 from pubs/fix87
...
Fix #87 (more robust error handling and list command)
7 years ago
Olivier Mangin
03900c324a
Adds changelog entry.
7 years ago
Olivier Mangin
ea2bc7f732
Merge branch 'master' into fix87
7 years ago
Olivier Mangin
fe2e31e2d0
Merge pull request #151 from pubs/fix/pyfakefs37
...
Fix compatibility with latest Pyfakefs.
7 years ago
Olivier Mangin
13f21a3d28
Minor grammar in warning.
7 years ago
Olivier Mangin
9093cbfbed
Add changelog entry for #151 .
7 years ago
Olivier Mangin
3d76501a5c
Merge branch 'master' into fix/pyfakefs37
7 years ago
Fabien C. Y. Benureau
cf97f681ef
cleanup commented code, better reset_fs()
7 years ago
Fabien C. Y. Benureau
c76c7607f9
Upgrade pyfakefs to current version
...
Fix #148 . Also did some cleanup on the tests.
7 years ago
Olivier Mangin
95d314a2aa
Merge pull request #150 from pubs/changelog
...
[Fix #85 ] Adds changelog file.
7 years ago
Olivier Mangin
bc239aba69
Removes italic on one contributor.
7 years ago
Olivier Mangin
5a47150aad
Adds option to ignore malformed bibtex files or entry during import.
7 years ago
Olivier Mangin
60650b874a
Addresses minor comments (error message and better test).
7 years ago
Olivier Mangin
754e926893
Adds authors of PRs to changelog and missing ksunden to readme.
7 years ago
J. Antognini
ccdbe72eb7
Address omangin's code review.
...
* This fixes the logic in the `pubs add` command so that an arxiv ID doesn't
overwrite a DOI. This also changes the logic so that if an invalid DOI, ISBN,
or arXiv ID is provided the program will raise an error.
* The code now uses the bibtexparser package to generate the bibtex file for
arxiv papers.
* A dedicated exception is added for references that can't be found.
7 years ago
Olivier Mangin
7518dfd56a
[ Fix #85 ] Adds changelog file.
7 years ago
Olivier Mangin
ea711b6b42
[ Fix #87 ] Include citekey in message on bibtex decoding error from repository.
...
Catches decoding error at databroker level to include citekey in message.
Could be improved by a better exception class for BibDecodingError.
7 years ago
Olivier Mangin
8a7d143261
Improves behaviors related to bibtex decoding error.
...
- from editor input in add and edit commands,
- from files in import command.
7 years ago
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.
7 years ago
Olivier Mangin
2f48f37199
Fixes duplicated test names in same TestCase (1st was not run).
7 years ago
Olivier Mangin
99dfcd1691
Merge pull request #142 from pubs/feat/dialogedit
...
Dialog after editing paper
7 years ago
Olivier Mangin
6957ae3cbb
Merge branch 'master' into feat/dialogedit
7 years ago
Olivier Mangin
fbd29d27a4
Merge pull request #141 from pubs/feat/editor_missing
...
error message when editor is missing
7 years ago
Olivier Mangin
8fe650c040
Use join for joining paths.
7 years ago
Olivier Mangin
4dc69bcfc2
Use vi as a (saner) default. Fixes #140 .
7 years ago
Joe Antognini
30f5f86c9d
Don't immediately exit on malformed arxiv id.
...
To be consistent with errors in other uses of `pubs add`, we only exit when the returned bibentry is
None.
7 years ago
Joe Antognini
35f209a98a
Remove unnecessary function from earlier commit.
7 years ago