Commit Graph

11 Commits

Author SHA1 Message Date
rachmadani haryono
467d865e42 Feature/fix buku test (#423)
* fix pylint

* chg: tests: update tox

- add envlist for py38, flake8, and pylint
- let tox install required package

* chg: test: remove expected error

* chg: test: remove impossible case

* fix: test: delete rec index test
2019-12-07 08:36:29 +05:30
Arun Prakash Jana
6bfe5050bc
Fix build break 2019-09-28 10:48:14 +05:30
Andrew Szeto
ff09af7d62
Added one more folder to the pylint ignore 2019-02-22 19:54:56 -08:00
Andrew Szeto
efe7b59da7
Update tox.ini to work locally
The `tox.ini` file had a few updates to get it working again:

- We can delete the commented lines, because they have already been kept inside of the Git history.
- tox does not support pipe characters in commands (https://bitbucket.org/hpk42/tox/issues/73), so we use `find -exec` and remove `xargs`
- We ignore the `.tox` directory for linting to avoid catching a bunch of imported code.
2019-02-22 18:46:37 -08:00
Arun Prakash Jana
02263018c4
Lint test buku (file extension gone) 2018-11-12 02:10:55 +05:30
Arun Prakash Jana
292ac9e728
Fix build break 2018-10-25 19:20:37 +05:30
Arun Prakash Jana
6ebde9a181
Use tox.ini for flake8 config, retire setup.cfg 2017-09-02 17:41:52 +05:30
rachmadani haryono
8afba2d826 Feature/pylint (#185)
* fix: dev: os function name

* new: test: pylint config

* new: test: pylint test

* chg: dev: linting guide

* new: dev: add alternative commented test run command

* chg: dev: max line length on PR template
2017-08-12 16:56:59 +05:30
rachmadani haryono
4d7385599b Feature/flake8 (#184)
* new: test: flake8 test

* chg: dev: add flake8 package for test

* chg: dev: remove coverage rule
2017-08-12 09:38:09 +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