-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π
Commit Mon, 19 Apr 2021 19:17:12
π 3.1.0 β¨ new plugin sqlite β tests added/updated
- Loading branch information
Showing
4 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Submodule chepy_plugins
updated
4 files
+1 β1 | chepy_elffile.py | |
+1 β1 | chepy_elffile.pyi | |
+71 β0 | chepy_sqlite.py | |
+11 β0 | chepy_sqlite.pyi |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |