Commit Graph

173 Commits

Author SHA1 Message Date
Arun Prakash Jana
b69007e9a6
Show title in headline, url below
If no title, use the string "Untitled".
2017-04-19 09:33:07 +05:30
Arun Prakash Jana
b9fbed2cab
Support print records at prompt 2017-04-07 02:03:10 +05:30
Arun Prakash Jana
706f234989
Support append/overwrite/delete tags from prompt 2017-04-07 01:27:36 +05:30
Arun Prakash Jana
620f1944fb
Removed horribly unmaintainable test case. 2017-04-06 09:08:42 +05:30
rachmadani haryono
a576e54bed Feature/test update rec (#141)
* new: test: update_rec

* new: test: update all bookmarks

* new: test: add new return value when update all bookmarks

* chg: test: remove unused caplog
2017-04-03 01:59:45 +05:30
Arun Prakash Jana
a1c1092987
Fix #142: Firefox opening multiple windows
Try to open new tab and not window.
Fix test case fail.
2017-04-02 22:49:52 +05:30
rachmadani haryono
f25f67bfc1 Feature/test add rec (#140)
* new: test: test empty url.

* new: test: test is_bad_url

* new: test: network_handler

* new: test: test exec arg on add_rec

* fix: test: restore global variable.

* chg: test: change test

- add more falsey url for test_add_rec_add_invalid_url
- add more arg for test_add_rec_exec_arg

* chg: test: use old test when testing is_bad_url
2017-03-30 22:22:47 +05:30
rachmadani haryono
7be3acc53e Feature/test print (#137)
* new: test: test for delete_rec (#132)

* chg: dev: add db instance for delay_commit check
* chg: dev: remove unused delete_rec test
* chg: test: not check delay commit on empty db test.
* chg: test: use simpler precise test for delete_rec
* fix: test: change pytest parametrize arg
* fix: test: fix instance of BukuDb
* fix: test: fix test.
* fix: test: logic on expected db len
* new: test: test for delete_rec
* new: test: test for delete_rec on empty database

* Needs timely commitment.

Removing the base implementation for rest APIs. At this point I believe it will
Be better handled by someone who needs it. The current contributions in this
area are very very infrequent. Defects and PRs remain pen over fortnights. It's
difficult to expect the same team to maintain the piece of code even if we ever
receive the full implementation from them.

* Roll ToDo list

* Feature/delete rec additional test data set (#133)

* new: test: additional data test set.

* new: test: test on non integer.

* chg: test: rename function for consistency.

* chg: test: change normalize function.

* chg: test: change max value for high var

* fix: test: use normalized index

* fix: test: remove 'max' as valid value

* chg: test: use hypothesis to test delete_rec index

* new: test: add hypothesis package

* chg: test: use hypothesis to test delete_rec index

* chg: test:  add hypothesis to travis

* chg: test: limit integer test.

* chg: dev: remove unused test

* fix: test: fix test on non integer.

* new: test: add big integer test on range in delete_rec method.

* fix: test: fix high low diff

* fix: test: skip only for python<3.5

* chg: test: change test_delete_rec_range_and_big_int

- remove skip
- use constant value instead sys.maxsize
- fix assert

* chg: test: use setup.py to manage test package instead travis

* chg: test: add tests extras on setup.py

* chg: test: change install test package.

* fix: test: fix whitespace

* fix: test: MAX_SQLITE_INT value

* chg: test: skip test for python<3.5

* fix: test: fix import

* chg: test: skip Impossible test

* chg: test: simplify test_delete_rec_on_non_interger

* Feature/tox test (#138)

* chg: test: mark slow test

* new: test: config for tox

* chg: test: mark function as non tox

* new: test: test print_rec with hypothesis

* chg: test: simplify test for print_single_rec

* fix: test: fix index test on test_print_rec_hypothesis

* fix: test: fix tox setting.

* fix: test: change test_print_single_rec to python3.5 only
2017-03-28 22:00:12 +05:30
rachmadani haryono
e2989b0dcc Feature/tox test (#138)
* chg: test: mark slow test

* new: test: config for tox

* chg: test: mark function as non tox
2017-03-28 19:43:22 +05:30
rachmadani haryono
0c7d5cfe97 Feature/delete rec additional test data set (#133)
* new: test: additional data test set.

* new: test: test on non integer.

* chg: test: rename function for consistency.

* chg: test: change normalize function.

* chg: test: change max value for high var

* fix: test: use normalized index

* fix: test: remove 'max' as valid value

* chg: test: use hypothesis to test delete_rec index

* new: test: add hypothesis package

* chg: test: use hypothesis to test delete_rec index

* chg: test:  add hypothesis to travis

* chg: test: limit integer test.

* chg: dev: remove unused test

* fix: test: fix test on non integer.

* new: test: add big integer test on range in delete_rec method.

* fix: test: fix high low diff

* fix: test: skip only for python<3.5

* chg: test: change test_delete_rec_range_and_big_int

- remove skip
- use constant value instead sys.maxsize
- fix assert

* chg: test: use setup.py to manage test package instead travis

* chg: test: add tests extras on setup.py

* chg: test: change install test package.

* fix: test: fix whitespace

* fix: test: MAX_SQLITE_INT value

* chg: test: skip test for python<3.5

* fix: test: fix import

* chg: test: skip Impossible test

* chg: test: simplify test_delete_rec_on_non_interger
2017-03-28 19:43:22 +05:30
rachmadani haryono
aab928c04f new: test: test for delete_rec (#132)
* chg: dev: add db instance for delay_commit check
* chg: dev: remove unused delete_rec test
* chg: test: not check delay commit on empty db test.
* chg: test: use simpler precise test for delete_rec
* fix: test: change pytest parametrize arg
* fix: test: fix instance of BukuDb
* fix: test: fix test.
* fix: test: logic on expected db len
* new: test: test for delete_rec
* new: test: test for delete_rec on empty database
2017-03-28 19:42:57 +05:30
Arun Prakash Jana
75109cec3e
Fix range handing in delete_rec() and print_rec()
1. Handle ranges within API rather than in caller
2. Rename print_record() to print_single_rec()
2017-03-19 12:39:44 +05:30
rachmadani haryono
3545a4765e Feature/retire test helpers (#131)
* chg: test: merge test_helpers

* chg: test: remove merged test helper.
2017-03-18 19:39:09 +05:30
rachmadani haryono
8fc2775b48 Feature/test (#130)
* new: test: test for BukuHTMLParser class

* new: test: test for BukuCrypt class

* chg: test: change getpass patch path

* new: test: test for ExtendedArgumentParser class

* new: test: test for functions.

* chg: test: fix warning for caplog

* chg: test:  exclude some test for python3.5 only
2017-03-18 19:11:59 +05:30
Arun Prakash Jana
b07d0ab8f5 Use colourful log levels in colour mode 2017-03-05 04:05:07 +05:30
Arun Prakash Jana
64799aff05 Rename APIs
New APIs: get_rec_all(), delete_rec_all()
Rename API open_in_browser() to browse()
Rename help APIs.
Update User Agent to Firefox 51.
Other minor changes
2017-02-19 11:30:10 +05:30
Arun Prakash Jana
ce3a7aa377 Remove length check for empty lists
Fix a bug in get_all_tags() where tuple was not returned.
Fix Travis error.
Convert some prints to tacit
2017-01-29 23:33:53 +05:30
Arun Prakash Jana
94482649c6 Fix test cases. 2016-12-27 22:58:28 +05:30
Arun Prakash Jana
84834a2355 Use _rec instead of _bm. 2016-12-27 21:18:55 +05:30
Alessio Sergi
4cf02b9fa9 Add setup.py for installation as a system tool. 2016-11-06 19:44:44 +01:00
Arun Prakash Jana
98f625c77d
Fix failed test cases. 2016-11-06 04:43:16 +05:30
Arun Prakash Jana
2632ca05ba Rename APIs. Set verbose off by default. 2016-10-29 18:16:25 +05:30
Arun Prakash Jana
b9fc2a37f0 Fix test case failure. 2016-10-29 00:45:15 +05:30
APJ
353290155a Fix test failures.
The failures were introduced by commit 2f5796a0cf.

Logs: https://travis-ci.org/jarun/Buku/builds/171214761
2016-10-28 12:28:53 +05:30
Arun Prakash Jana
59a101836f Fix Travis build error. 2016-10-10 10:39:02 +05:30
Paul
ef937392a9 tests change browser_open to open_in_browser 2016-09-09 09:03:44 -05:00
Paul
ab22adf25d added test_search_and_open_all_in_browser 2016-09-09 09:01:34 -05:00
Paul
370879b599 fix test_search* cases 2016-09-08 10:03:29 -05:00
Paul
7723111820 added test_searchdb 2016-09-07 17:01:19 -05:00
Paul
50cdf2c0a7 minor BukuDb testcase refactors
more minor refactors
2016-09-07 13:02:40 -05:00
Paul
b03e86c82e added test_search_by_tag 2016-09-07 13:02:40 -05:00
Paul
db436ceca0 added test_search_and_open_in_browser_by_range 2016-09-06 13:25:57 -05:00
Paul
f865d6add9 Revert "adding subTest for distiguishing between iterations"
This reverts commit ef78c7cd1e.
2016-09-03 22:14:56 -05:00
Paul
1644a9f63f improved test_delete_all_bookmarks 2016-09-03 21:07:06 -05:00
Paul
ef78c7cd1e adding subTest for distiguishing between iterations 2016-09-03 21:07:06 -05:00
Paul
0290cec9b1 moving BukuDb initialization to setup for TestCases 2016-08-30 09:12:10 -05:00
Paul
c2c656ed48 added test_delete_tag_at_index, test_append_tag_at_all_indices 2016-08-30 09:11:50 -05:00
Paul
197b6c4f31 adding test_delete_bookmark_yes, test_delete_bookmark_no, fix caplog.records method call 2016-08-26 11:54:57 -05:00
Arun Prakash Jana
33072b2edf Revert "Some more tests, refactors for supplying input in tests" 2016-08-26 00:02:33 +05:30
Paul
f6895e98ab adding test_delete_tag_at_index, test_delete_tag_at_all_indices 2016-08-24 22:20:34 -05:00
Paul
b294351436 added test_append_tag_at_all_indices 2016-08-24 13:31:45 -05:00
Paul
4a43b39743 adding 2 tests, refactors for improved testing 2016-08-24 01:51:27 -05:00
Paul
9f66cfbd00 fixed caplog.records call in test_print_bookmark 2016-08-23 10:50:15 -05:00
Paul
82b0e1cdd7 fixed test_append_tag_at_index 2016-08-23 09:15:48 -05:00
Paul
ec74961762 adding test_append_tag_at_index 2016-08-23 01:10:14 -05:00
Paul
64409de63e adding test_get_bookmark_by_index 2016-08-21 22:14:46 -05:00
Paul
076b2eda7a adding test_delete_all_bookmarks 2016-08-21 18:09:07 -05:00
poikjhn
58fc2fd5e9 fixing test_print_bookmark 2016-06-30 23:53:04 +02:00
Arun Prakash Jana
29b8cf5b6e
Commenting out the failing testcase temporarily. 2016-07-01 01:33:49 +05:30
Arun Prakash Jana
cf9848fc86
Fix test case failures. 2016-07-01 01:17:09 +05:30
poikjhn
15d6e85f78 Merge branch 'master' into tests 2016-06-28 23:17:01 +02:00
poikjhn
7304fdbbeb adding test_compactdb 2016-06-25 20:59:33 +02:00
poikjhn
ec2569f142 adding test_list_tags 2016-06-24 23:57:26 +02:00
poikjhn
f609ca49af adding test_print_bookmark 2016-06-23 23:59:55 +02:00
Arun Prakash Jana
0b7cc736a3 Update test_bukuDb.py 2016-06-23 19:14:09 +05:30
poikjhn
b14108fa93 adding test_printmsg 2016-06-16 23:46:24 +02:00
poikjhn
26a7bb3761 adding test_sigint_handler 2016-06-15 23:52:37 +02:00
poikjhn
025f9628b5 adding test_is_int 2016-06-14 17:15:39 +02:00
poikjhn
56b819947a adding test_get_bookmark_index 2016-06-13 23:54:22 +02:00
poikjhn
c1f69d9b35 adding test_close_quit and coverage reporting 2016-06-12 22:33:29 +02:00
poikjhn
65835c9b40 adding TestHelpers with test_parse_tags 2016-06-10 20:23:58 +02:00
poikjhn
3e395b00e0 fixing tests 2016-06-08 10:16:09 +02:00
poikjhn
08543af540 Merge remote-tracking branch 'upstream/master' into tests 2016-06-08 09:50:05 +02:00
poikjhn
5c25694318 adding test_replace_tag 2016-06-07 06:22:38 +02:00
Arun Prakash Jana
3d3e0c0387
Add support to build deb package. 2016-06-06 22:55:06 +05:30
poikjhn
3eea3d7771 adding test_refreshdb 2016-06-05 22:41:01 +02:00
poikjhn
7b87917e86 adding two more tests 2016-06-04 01:18:54 +02:00
poikjhn
89e6467d74 travis integration for tests 2016-06-03 17:58:41 +02:00
Arun Prakash Jana
586992a5ac Modify API name.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-06-02 11:08:14 +05:30
poikjhn
d1f3ee993d rebuilding test_add_and_retrieve_bookmark
adding get_bookmark_by_id
2016-06-01 03:33:20 +02:00
poikjhn
a8d66282c4 minor changes 2016-06-01 00:11:03 +02:00
toyg
a28ee20828 3 initial tests, more to come 2016-05-25 13:57:33 +01:00
toyg
2196b6143c added testing infrastructure 2016-05-25 09:59:40 +01:00