Fabien C. Y. Benureau
38133fc053
fix for utf8 citekeys
7 years ago
Fabien C. Y. Benureau
9a6db894d8
fix fakeenv creation when used from a non-primary volume
7 years ago
Olivier Mangin
50a44d964c
Merge branch 'master' into version
7 years ago
Olivier Mangin
801e0c035f
Adds code version to cache. ( Fixes #129 )
...
Current code version is added to the cache on writting. If the cache
version does not match the code version on read, the cache is ignored
which means it resets.
7 years ago
Olivier Mangin
bcf216183f
Fixes tests for printing help on `--help` and without argument.
...
(fix #135 )
7 years ago
Fabien C. Y. Benureau
f8a8e0e207
pyfakefs 3.3
7 years ago
Olivier Mangin
71c2f40657
Merge branch 'master' into fix/link_customization
7 years ago
Olivier Mangin
a6d5df4059
Removes link and DOI customization. Fixes #119 .
7 years ago
Fabien C. Y. Benureau
82aad31e5d
test for common_string parsing
7 years ago
Olivier Mangin
6e39cea473
Adds `--strict` option to list to force strict unicode comparison.
7 years ago
Olivier Mangin
248bf62317
Fixes unicode for python2 in test_queries.
7 years ago
Olivier Mangin
f3ec9621ee
Adds and checks unicode normalization. Fixes #103 .
7 years ago
Olivier Mangin
1bcbf65dd8
Implements latex escape in queries.
7 years ago
Olivier Mangin
c87b89bf10
Fix wrong test.
7 years ago
Olivier Mangin
078b2084ff
Updates field orders to use 'url' and fixes broken test.
...
The field ordering test was broken on the latest bibtexparser since it
now replaces by default 'link' fields by 'url'.
7 years ago
Fabien C. Y. Benureau
8126a0e0b4
Fix bibtex testcase, closes #25 .
...
Also, made pyfakefs a straight pypi requirement, rather than a
github one, as no dev feature is needed since the last release.
7 years ago
Olivier Mangin
328f2a6d5e
Adds more checks and better error message against empty citekeys.
7 years ago
Olivier Mangin
860181e278
Adds argument to ignore fields in export. [ Closes #67 ]
...
`pubs export --ignore-fields abstract,note CiteKey`
7 years ago
Olivier Mangin
07be993d02
Moves to using bibtexparser's writer for bibdata. [ Fixes #33 ]
7 years ago
Bill Flynn
aa408e9b2d
[ #95 ] updated doi tests
7 years ago
Bill Flynn
e2ad39ca08
[ Fix #95 ] robust handling of DOIs
...
Added DOI regex function to utils.py which is called in add_cmd.py
upon specifying a new DOI. DOI validation applies directly on
argument parsing by using a custom argparse.Action.
7 years ago
Olivier Mangin
e069da518f
Fixes query tests (`assertFalse(not ...)` and wrong name).
7 years ago
Olivier Mangin
3ad4a73da1
Moves query code from list_cmd to didicated module.
7 years ago
Olivier Mangin
0bd8d5b8dc
Actually adds the functionality as well as a few more tests.
7 years ago
Olivier Mangin
84553d8eb3
[ Fix #90 ] Adds year ranges to queries.
7 years ago
Olivier Mangin
c54de5c3b6
Refactors paper filtering from queries.
7 years ago
Bill Flynn
ebbd2d4f19
added another test for #98
7 years ago
Bill Flynn
4362c649b2
Added alias description functionality to conf #98
...
Changed Alias constructor, added tests for this behavior, and added
a few lines in the default conf describing how to define alias
descriptions.
7 years ago
Olivier Mangin
3e31c4455e
Fixes argument and adds tests for overwrite on import.
7 years ago
Bill Flynn
37f076049b
Many tests on MacOS 10.12.06 were failing due to fakefs path issues.
...
Not sure if this is needed. Will see in the CI builds.
7 years ago
Bill Flynn
0c7ba85af9
Revisions subject to comments on PR #100
...
Additionally, reverted FakeSystemExit subclassing Exception, but added
an explicit __init__ so that we can emulate the SystemExit.code
functionality without having to change the superclass.
7 years ago
Bill Flynn
66c90c5d43
Added unittest to cover new behavior `pubs`
...
Unittest just checks that both `pubs` and `pubs --help` raise a
`SystemExit` exception with error code 0. Due to how argparse
handles the `--help` keyword, this is the best way I could think to
provide test coverage without heavily modifying the parser structure
or the unittest infrastructure.
To ensure the `pubs` matches the behavior of `pubs --help`, it now
raises the same `SystemExit(0)` exception via `sys.exit(0)`. And
in order to catch it in the unittest, I had to modify the
`FakeSystemExit` behavior slightly.
7 years ago
Bill Flynn
ac3a8d8bf2
Print help menu when no subcommands applied
...
Made subparsers not required in the main parser, but if no commands are parsed,
then the parser prints its help. When a command is present, the normal
functionality preserved.
Removed the single unittest that checks for this exact behavior.
7 years ago
Olivier Mangin
6a26216c3e
COSMIT
7 years ago
Olivier Mangin
a65873a7e0
Fixes abspath called on urls preventing to get content from url.
...
Fix #7
7 years ago
Olivier Mangin
47f5c918ea
Fix #93 : saves the modifications on `edit -m`.
7 years ago
Olivier Mangin
5c74f942c4
[ Fix #88 ] Adds proper escaping for arguments in alias plugin.
7 years ago
Olivier Mangin
69d7587108
Adds test for configuration file content in usecase.
8 years ago
Fabien C. Y. Benureau
366575763c
Remove duplicate test
8 years ago
Fabien C. Y. Benureau
0942df3b50
Fix pubs conf command
8 years ago
Olivier Mangin
da6f07c6c9
Adds basic API test for DOI and ISBN.
8 years ago
Olivier Mangin
4ffd62fe9f
[notes] Allow different file extension for note file (see #70 ).
8 years ago
Olivier Mangin
9b6496d740
Removed commented code with old imports.
8 years ago
Olivier Mangin
323fb8b674
Fixes indent and removes unused io import.
8 years ago
Fabien C. Y. Benureau
3b4cfe635d
Fix tests for Python 2
...
Also, some cleanup in fake_env.py
8 years ago
Fabien C. Y. Benureau
ce4b66e9b4
Fix unittests for Python 3
8 years ago
Olivier Mangin
a5466c940e
Prepare configuration loading for autocomplete.
...
In particular, tries to load configuration when no argument is given.
Also removes unused check option from load_conf.
8 years ago
Olivier Mangin
6c2f0f6f8d
Moves editor commands to ui to avoid using with wrong editor values.
...
For now, the editor_input and edit_file functions do not make sense
outside of the context of an ui. Having them in the content module
was confusing. (See issue fixed by a600855.)
8 years ago
Olivier Mangin
8ae339d870
Removes debug code and unused code.
8 years ago
Fabien C. Y. Benureau
0f84268ebf
Honor custom pubsdoc in config
9 years ago