Fabien C. Y. Benureau
4fb8e674e8
fixes test by skipping isbn
2 years ago
Fabien C. Y. Benureau
cb2de6c072
Merge pull request #279 from dotlambda/remove-nsec_stat
...
remove nsec_stat option from tests
2 years ago
Robert Schütz
05e214eb40
remove nsec_stat option from tests
3 years ago
Robert Schütz
9623d2c3ca
make tests compatible with bibtexparser 1.3.0
3 years ago
Florian Richoux
009cb808a4
Update tests for the new tag display
3 years ago
Fabien C. Y. Benureau
6271b0bd1c
stricter tests for exclude_bibtex_fields
3 years ago
Fabien C. Y. Benureau
d9c8af7c9a
rename `bibtex_field_excludes` into `exclude_bibtex_fields`
3 years ago
Mitsuhiro Nakamura
df52580a0f
test: add tests for excluding bibtex fields
3 years ago
Fabien C. Y. Benureau
d11f443276
explicit move/copy dialog in add; update changelog
5 years ago
Fabien C. Y. Benureau
e8700d7db1
added test for ambiguous citkeys
...
* also reworked the test code to allow to capture output even
when pubs throws an error.
* empty tags are not added to the metadata anymore (does not affect
existing instances)
5 years ago
Fabien C. Y. Benureau
def25609a1
Merge branch 'master' into feat/remove_prompt
5 years ago
Fabien C. Y. Benureau
04b25a22c8
renamed n_authors into max_authors
5 years ago
Fabien C. Y. Benureau
7bd475378c
support for non-standard bibtex types, fix #210 #218
5 years ago
Fabien C. Y. Benureau
1b8728f4f6
minor: fix output flags in usecase
5 years ago
Fabien C. Y. Benureau
ad85fe9df8
add usecase test for n_authors
5 years ago
Fabien C. Y. Benureau
7776b65de2
number of displayed authors configurable
...
fix #212
5 years ago
dvklopfenstein
b75d77bf24
Test appending a multi-word line into a bib note.
...
https://github.com/pubs/pubs/pull/201#discussion_r305274762
6 years ago
emnllm
94112c02fe
fixes inconsistant chronological listing test
...
* Chronological order listing output for a same year, without entry
timestamp (added metadata field), may vary
6 years ago
emnllm
2e4af1d38f
removes the month field from the chronological listing
6 years ago
emnllm
b3e9db62e1
improves chronological listing (year, month), adds test
6 years ago
ksunden
994b4da69c
Check full output, not just year
6 years ago
ksunden
7ba016e54c
TST: Test contents of import, not that the command fails
6 years ago
Olivier Mangin
3b6751ea1b
Minor: Removes duplicate mock import in test_usecase
6 years ago
Shane Stone
7645b0949c
Add test for pubs list using citekey filter in test_usecase.py
6 years ago
Olivier Mangin
3a4acb9fa9
Partial fix for #188
6 years ago
Olivier Mangin
c8352fb7df
Fixes test not passing because bitexparser's latex_to_unicode also normalizes
6 years ago
Fabien C. Y. Benureau
9bf88649a3
fix #172
6 years ago
Fabien C. Y. Benureau
6865e29d15
fix for Python 2
6 years ago
Fabien C. Y. Benureau
b99c5b43fa
handle / in citekeys
6 years ago
Olivier Mangin
da70d3c381
Handles listing papers with documents without extension.
6 years ago
Fabien C. Y. Benureau
49e6c7d9c2
update tests
7 years ago
Fabien C. Y. Benureau
a58f1b1d5e
hotfix for #164
7 years ago
Olivier Mangin
42d75d1230
Merge branch 'master' into fix/doc_add
7 years ago
Olivier Mangin
c2e52ec4c4
Makes 'copy' the default for the `add_doc` configuration option.
7 years ago
Olivier Mangin
7dae35e722
Adds the statistics command. ( Fixes #8 )
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
Olivier Mangin
ea2bc7f732
Merge branch 'master' into fix87
7 years ago
Olivier Mangin
3d76501a5c
Merge branch 'master' into fix/pyfakefs37
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
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
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
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
ksunden
a0525b5147
Remove unused /dev/null
7 years ago
ksunden
2f59b4f2ce
Clean up tests
7 years ago
ksunden
aaf2ed52c1
Use mock to test url command
7 years ago
Fabien C. Y. Benureau
6cd74a9966
error message when editor is missing
...
simplified a bit the ui code, to remove unecessary out-of-class functions
(needed anyway because of ui.error calls).
7 years ago
Fabien C. Y. Benureau
913a5d77b5
unicode citekey in python2; removes
7 years ago