20 Commits

Author SHA1 Message Date
Olivier Mangin
de2a50eeb2 Fix tests and terminology.
First this brings a change to the paper API: the terminology of bibdata
and bibentry is clarified: now bibentry is a dictionary of the form
{citekey: bibdata} where bibdata corresponds to the actual dictionary of
bibliographic fields and values {author: ..., year: ...}.
Now bibentry is an attribute of the paper object that is generated from
citekey and bibdata.

This commit fixes all tests in particular an issue with citekey in
bibentry not updated.

Also removes prints in tests and deprecated assertEquals.

Usecase tests now fail if the command ask for unexpected inputs.

Removes queries for user input in attach and add commands (for deletion
of a copied document file). The input was not coherent with tests and is
annoying.
2015-05-07 13:17:44 +02:00
Olivier Mangin
ad29b27412 FIX bugs witth added time.
Actually implement set of added time in repository.
Changes storage of added time (now as datetime.datetime).
2014-04-17 19:15:04 +02:00
Olivier Mangin
c9e4f9788c Moves removing of 'id' to endecoder where it belongs. 2014-04-16 16:21:40 +02:00
Olivier Mangin
e4a25abcfb FIXES test_repo.
Removes 'id' entry from bibdata.
Fixes bug introduced in repo.
2014-04-15 21:09:10 +02:00
Fabien Benureau
d3736e257b moving from pybtex to bibtextparser, fixed major regressions.
* only bibtex format is supported
* all tests except test_repo.py and edit test pass
* edit and update commands were not updated
* removed --format argument from export, only bibtex is supported.
2014-04-13 15:10:40 +02:00
Fabien Benureau
8d91545472 papers renamed 'pubs' 2013-11-14 04:40:29 +01:00
jgrizou
7b555abf92 Change repo and removed the update function and the rename function. Now only the save_paper function must be used 2013-07-05 17:35:32 +02:00
Fabien Benureau
3c0f575b92 backtracked on changes. repo is passing all tests 2013-07-02 15:58:12 +01:00
Fabien Benureau
164816a910 updated tests 2013-07-02 14:03:32 +01:00
Fabien Benureau
c7a8ada751 enabled load keyword in repo __init__ 2013-07-02 13:29:17 +01:00
Fabien Benureau
7b66a4697d all repo test pass. doc are temporarily disabled. 2013-07-02 12:07:26 +01:00
Fabien Benureau
904ae07bc5 more test_repo tests are passing 2013-07-02 11:23:17 +01:00
Fabien Benureau
a354e79523 first test of new repo passing 2013-07-02 10:59:55 +01:00
Olivier Mangin
18ed2a7629 Simplifies paper retrieval from repo.
- Removes old paper_from_ref from repo.
- Changes papers_from_citekey to get_paper.
- Switches texnote plugin to new ref argument helpers.
2013-06-19 16:43:18 +02:00
Olivier Mangin
3e6a1403b9 Adds basic export capabilities. 2013-03-14 15:49:04 +01:00
Olivier Mangin
83845d2360 Adds update funciton for paper and required API and test updates.
- Adds update function that handle changes in citekey.
- Adds copy functions to paper classes.
- Adds tests.
- FIX a few bugs.
2013-03-01 16:33:56 +01:00
Olivier Mangin
b46f8c543d Improves repo dir specification to avoid issues. 2012-12-19 16:20:35 +01:00
Olivier Mangin
dbb73d6f8e Fixes wrong test. 2012-12-19 15:29:14 +01:00
Olivier Mangin
1fad286517 Improves repo.py, adds tests. Still things to clean and decide... 2012-12-17 16:56:32 +01:00
Olivier Mangin
b08133bd1d Improves citekey suffix generation. 2012-12-17 10:59:16 +01:00