Skip to content

Commit

Permalink
πŸ“… Commit Mon, 19 Apr 2021 19:17:12
Browse files Browse the repository at this point in the history
πŸš€ 3.1.0
✨ new plugin sqlite
βœ… tests added/updated
  • Loading branch information
securisec committed Apr 19, 2021
1 parent 431ece1 commit dd51b4e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chepy/__version__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "3.0.2" # pragma: no cover
__version__ = "3.1.0" # pragma: no cover
__author__ = "Hapsida @securisec" # pragma: no cover
2 changes: 1 addition & 1 deletion chepy/chepy_plugins
Binary file added tests/files/test.db
Binary file not shown.
18 changes: 18 additions & 0 deletions tests_plugins/test_sqlite.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from chepy import Chepy

DB_FILE = "tests/files/test.db"


def test_sqlite_get_columns():
assert len(Chepy(DB_FILE).sqlite_get_columns("customers").o) == 13


def test_sqlite_get_tables():
assert len(Chepy(DB_FILE).sqlite_get_tables().o) == 13


def test_sqlite_dump_table():
assert len(Chepy(DB_FILE).sqlite_dump_table("customers").o) == 59

def test_sqlite_query():
assert len(Chepy(DB_FILE).sqlite_query("select * from customers where company is not null").o) == 10

0 comments on commit dd51b4e

Please sign in to comment.