Skip to content

Commit

Permalink
ℹ️
Browse files Browse the repository at this point in the history
ℹ️ logo changed
  • Loading branch information
securisecctf committed Nov 30, 2019
1 parent 57b2404 commit 92024e3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<img src="https://raw.githubusercontent.com/securisec/chepy/master/logo.png" width="300px">
<p align="center">
<img src="https://raw.githubusercontent.com/securisec/chepy/master/logo.png" width="50%">
</p>

![](https://github.com/securisec/chepy/workflows/tests/badge.svg)
![Travis (.com)](https://img.shields.io/travis/com/securisec/chepy?logo=travis)
Expand Down
Binary file modified logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 4 additions & 6 deletions tests/test_forensics.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,21 @@ def test_detect_file_type():
set_state=True
).o == "application/x-executable"
assert True
Chepy("tests/files/encoding").load_file().get_mime(
set_state=True
).o == "text/plain"
Chepy("tests/files/encoding").load_file().get_mime(set_state=True).o == "text/plain"
assert True


def test_get_metadata():
assert Chepy("logo.png").load_file().get_metadata(set_state=True).o == {
"Bits/pixel": "32",
"Compression": "deflate",
"Compression rate": "117.2x",
"Creation date": "2019-11-19 02:46:07",
"Compression rate": "138.6x",
"Creation date": "2019-11-30 21:40:30",
"Endianness": "Big endian",
"Image DPI height": "3780 DPI",
"Image DPI width": "3780 DPI",
"Image height": "1080 pixels",
"Image width": "1080 pixels",
"Image width": "1920 pixels",
"MIME type": "image/png",
"Pixel format": "RGBA",
}
Expand Down
10 changes: 5 additions & 5 deletions tests/test_multimedia.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@


def test_image_resize():
assert len(Chepy("logo.png").read_file().resize_image(128, 128, "png").o) == 1525
assert len(Chepy("logo.png").read_file().resize_image(128, 128, "png").o) == 1596
assert (
len(Chepy("logo.png").read_file().resize_image(128, 128, "png", "hamming").o)
== 1525
== 1596
)
assert (
len(Chepy("logo.png").read_file().resize_image(128, 128, "png", "box").o)
== 1525
== 1596
)
assert (
len(Chepy("logo.png").read_file().resize_image(128, 128, "png", "bilinear").o)
== 1525
== 1596
)
assert (
len(Chepy("logo.png").read_file().resize_image(128, 128, "png", "antialias").o)
== 1525
== 1596
)


Expand Down

0 comments on commit 92024e3

Please sign in to comment.