137 Commits

Author SHA1 Message Date
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
d2ba13700f Better handling of path (also fixes bugs).
Paths should be normalized through content.system_path before any actual
operation on files. This is in particular taken care of in content
functions check_file, check_dir, write_file, and read_file.
2014-04-17 18:17:57 +02:00
Fabien Benureau
f2de611106 fixed last regression test 2014-04-17 12:53:13 +02:00
Olivier Mangin
07cb6f696c Adds back edit command.
The Repository rename_paper method has been updated. The citekey update
and syncronization with citekey in the bibdata should be handled in a
sane manner inside the Paper class.
2014-04-16 18:47:14 +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
Olivier Mangin
93c7fb2f27 Moves TestFakeFs helper to fake_env module. 2014-04-15 19:34:03 +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
4ce261d636 more tests on tags 2013-11-18 15:04:34 +01:00
Fabien Benureau
dfd16c029d first working paper test + bugfix 2013-11-18 14:53:43 +01:00
Fabien Benureau
9243859294 updated test_usecase + fixed bug in import_cmd 2013-11-17 19:44:55 +01:00
Fabien Benureau
810525b4d0 fixed test_config 2013-11-17 19:20:42 +01:00
Fabien Benureau
23cf48661b added bibstruct text, cleaned fixtures and test_paper 2013-11-17 19:19:31 +01:00
Fabien Benureau
0b1a351485 bibstruct tests + bug fixes 2013-11-17 18:56:52 +01:00
Fabien Benureau
8d91545472 papers renamed 'pubs' 2013-11-14 04:40:29 +01:00
Fabien Benureau
1ad64d7859 notes cmd 2013-11-11 04:07:42 +01:00
Fabien Benureau
10fd0f86d6 only one usecase failing 2013-11-11 00:52:09 +01:00
Fabien Benureau
e0dab17dcd added troublesome bibfile 2013-11-10 21:49:53 +01:00
Fabien Benureau
8c54b19207 updated import and added rename command 2013-11-10 19:35:21 +01:00
Fabien Benureau
76a6d092dd fixed bug in datacache + added corresponding tests 2013-11-10 02:44:37 +01:00
Fabien Benureau
a774a1604e databroker, datacache class + tests 2013-11-09 19:39:59 +01:00
Fabien Benureau
15857b5ecc docbroker class + tests + more filebroker test 2013-11-09 18:35:31 +01:00
Fabien Benureau
c1bf80fe68 filebroker class + tests 2013-11-08 01:21:15 +01:00
Fabien Benureau
c4701953de fake_env module for fake fs, fake input 2013-11-08 01:19:59 +01:00
Fabien Benureau
856cfa2a4f moved test string fixtures to str_fixtures.py 2013-11-08 01:18:04 +01:00
Fabien Benureau
e26c606163 endecoder implementation 2013-11-07 22:48:40 +01:00
Olivier Mangin
e72f8fa7f2 Improves query handling for list command.
- Cleans code.
- Clever mode for case by default (case sensitive only if capitals in
  query).
- Adds basic tests.
- Conjunction of blocks.
- Options to override smart case.
2013-10-14 18:03:34 +02:00
Olivier Mangin
08811b842f Adds citekey argument to selectively import entries.
Also removes unused fatal argument from many_from_path and moves
printing of warning to the command.
2013-07-16 12:46:02 +02:00
Jonathan Grizou
62bdf7dfad Changed event system to allow more advance listener.
See associated test for example.
2013-07-06 22:02:03 +02:00
jgrizou
0801b3882d Merge branch 'develop' into plug/texnote 2013-07-05 18:10:40 +02:00
jgrizou
9cc893d8a7 Added AddEvent 2013-07-05 17:41:48 +02: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
Olivier Mangin
d5247a6618 Refactors usecase.
Integrate helpers into TestCase sub-classes to make use of setUp
mechanism.
2013-07-05 14:42:07 +02:00
Fabien Benureau
ab52785667 update test in test_usecases 2013-07-04 21:39:51 +01:00
Fabien Benureau
9c47951532 don't remove files at end of test.sh 2013-07-04 21:16:57 +01:00
Fabien Benureau
145710b928 test for every command except websearch and update 2013-07-04 21:15:03 +01:00
Fabien Benureau
6c9d4a3a41 lot more test in test_usecase : every command used 2013-07-04 18:59:30 +01:00
Fabien Benureau
04fcb42338 tests can be run from root dir 2013-07-04 18:31:21 +01:00
Fabien Benureau
3b7900a3a4 added tests/tmpdir* to gitignore 2013-07-04 18:07:01 +01:00
Fabien Benureau
cc3928ef4b fake editor_input 2013-07-04 18:05:53 +01:00
Fabien Benureau
e0fd19f9d8 first input test working 2013-07-04 12:28:00 +01:00
Fabien Benureau
3dde852bdd execute_cmd input ready 2013-07-04 11:15:11 +01:00
Fabien Benureau
62a4527a37 method to set FakeInput package-wide 2013-07-04 10:34:00 +01:00
Fabien Benureau
d109d93341 added FakeInput class to usecase tests 2013-07-04 10:19:01 +01:00
Fabien Benureau
1be61baf21 added testenv import to test current code 2013-07-02 17:21:59 +01:00
Fabien Benureau
dc73c987c8 update command for config v2 to v3 2013-07-02 16:42:37 +01: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