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
Fabien Benureau
904ae07bc5
more test_repo tests are passing
2013-07-02 11:23:17 +01:00
Fabien Benureau
ac4b682307
added doc_dir and keywords init to config
2013-07-02 11:19:13 +01:00
Fabien Benureau
a354e79523
first test of new repo passing
2013-07-02 10:59:55 +01:00
Fabien Benureau
320a488667
added get operator to config
2013-07-01 14:56:16 +01:00
Fabien Benureau
45da61f4d2
added config support for multiple sections
2013-07-01 14:22:25 +01:00
Fabien Benureau
f934e8c2ec
more tests for config, slightly changed implementation and interface.
2013-07-01 13:44:43 +01:00
Fabien Benureau
e92c418d80
new, simplified, easier to use config implementation
...
tests are provided, but the rest of the code has not be updated yet.
2013-07-01 13:14:56 +01:00
Fabien Benureau
500667baae
more usecase test, hack-fixed plugins.
2013-06-30 18:40:34 +01:00
Fabien Benureau
76e162be02
added test bibfiles for usecases
2013-06-30 18:14:24 +01:00
Fabien Benureau
ddfc129b64
redirect and check stdout in usecases
2013-06-29 22:43:37 +01:00
Fabien Benureau
cb94166aef
test.sh into virtual usecase
2013-06-29 10:17:59 +01:00
Fabien Benureau
293fc2393f
automatic copy of content into fake fs
2013-06-29 10:04:38 +01:00
Fabien Benureau
46e6630e7a
corrected test name
2013-06-29 09:55:28 +01:00
Fabien Benureau
b4504278f2
more robust fake_fs testing; added papers add test
2013-06-29 09:30:56 +01:00
Fabien Benureau
13bd18cda9
working fs replacement enabling use case testing.
...
papers content was mostly moved to papers_cmd.py
You can now use papers_cmd.execute('papers tag Page99'.split()) from the code
2013-06-28 19:30:07 +02:00
Fabien Benureau
585e09e498
tags set are algebrical: math+romance-war
2013-06-28 15:22:55 +02:00
Fabien Benureau
919c7c1c5a
method parse for algebric tags
2013-06-28 14:58:27 +02:00
Fabien Benureau
69f1fad7e9
Merge branch 'develop' into texnote
2013-06-28 00:01:11 +02:00
Fabien Benureau
cd0ddfd264
removed useless backup file
2013-06-27 23:07:56 +02:00
Fabien Benureau
7c80257e7e
updated test.sh script
2013-06-27 23:07:56 +02:00
Olivier Mangin
05ab7ec32a
Cleanup events.
...
- moves tests to separate test_events file
- cleanup base Event class
2013-06-27 19:41:45 +02:00
Olivier Mangin
e017ffef20
Fix bugs with saving tags in yaml.
...
- now saves tag set as list (maybe the save_meta function should be
moved to paper.py)
- updates test to actually test storing of metadata
2013-06-27 19:21:28 +02:00
Fabien Benureau
d30d5f32c4
"label" renamed as "tag" in the metadata file (and everywhere else).
...
Use the update command to update your metadata files.
Tags is now a property of the Paper class, so one can use :
print(p.tags)
p.tags = ['math', 'romance']
2013-06-25 23:42:06 +02: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
Fabien Benureau
840deaccc1
test to measure color performance
2013-06-13 12:28:59 +02:00
Olivier Mangin
7c3ce78f70
Basic tag handling.
2013-06-05 14:52:50 +02:00
Olivier Mangin
3e6a1403b9
Adds basic export capabilities.
2013-03-14 15:49:04 +01:00