Fabien C. Y. Benureau
4fb8e674e8
fixes test by skipping isbn
2022-09-26 13:02:16 +02:00
Fabien C. Y. Benureau
cb2de6c072
Merge pull request #279 from dotlambda/remove-nsec_stat
...
remove nsec_stat option from tests
2022-09-26 13:00:02 +02:00
Robert Schütz
05e214eb40
remove nsec_stat option from tests
2022-08-10 11:37:30 +00:00
Robert Schütz
9623d2c3ca
make tests compatible with bibtexparser 1.3.0
2022-08-10 11:27:34 +00:00
Florian Richoux
009cb808a4
Update tests for the new tag display
2022-01-06 12:23:32 +01:00
Fabien C. Y. Benureau
6271b0bd1c
stricter tests for exclude_bibtex_fields
2022-01-05 14:10:29 +01:00
Fabien C. Y. Benureau
d9c8af7c9a
rename bibtex_field_excludes
into exclude_bibtex_fields
2022-01-05 13:52:05 +01:00
Mitsuhiro Nakamura
df52580a0f
test: add tests for excluding bibtex fields
2021-12-10 21:41:11 +09:00
Fabien C. Y. Benureau
d11f443276
explicit move/copy dialog in add; update changelog
2020-06-05 13:22:54 +09:00
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)
2020-06-02 18:55:24 +09:00
Fabien C. Y. Benureau
def25609a1
Merge branch 'master' into feat/remove_prompt
2020-05-10 09:33:14 +09:00
Fabien C. Y. Benureau
04b25a22c8
renamed n_authors into max_authors
2020-05-10 08:53:17 +09:00
Fabien C. Y. Benureau
7bd475378c
support for non-standard bibtex types, fix #210 #218
2020-05-05 17:39:12 +09:00
Fabien C. Y. Benureau
1b8728f4f6
minor: fix output flags in usecase
2020-05-05 01:00:26 +09:00
Fabien C. Y. Benureau
ad85fe9df8
add usecase test for n_authors
2020-05-05 00:50:37 +09:00
Fabien C. Y. Benureau
7776b65de2
number of displayed authors configurable
...
fix #212
2020-05-04 22:37:47 +09:00
dvklopfenstein
b75d77bf24
Test appending a multi-word line into a bib note.
...
https://github.com/pubs/pubs/pull/201#discussion_r305274762
2019-07-28 15:11:13 -04:00
emnllm
94112c02fe
fixes inconsistant chronological listing test
...
* Chronological order listing output for a same year, without entry
timestamp (added metadata field), may vary
2019-06-27 06:10:30 +00:00
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
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
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
Olivier Mangin
3a4acb9fa9
Partial fix for #188
2019-01-17 22:40:18 -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
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
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
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
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
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
Olivier Mangin
fbd29d27a4
Merge pull request #141 from pubs/feat/editor_missing
...
error message when editor is missing
2018-07-25 17:23:06 +02:00
Olivier Mangin
8fe650c040
Use join for joining paths.
2018-07-25 12:44:15 +02:00
ksunden
a0525b5147
Remove unused /dev/null
2018-05-22 20:56:34 -05:00
ksunden
2f59b4f2ce
Clean up tests
2018-05-22 20:16:50 -05:00
ksunden
aaf2ed52c1
Use mock to test url command
2018-05-22 10:32:43 -05:00
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).
2018-05-17 09:22:31 +09:00
Fabien C. Y. Benureau
913a5d77b5
unicode citekey in python2; removes
2018-04-10 14:55:55 +09:00