Skip to content

Commit cecc04a

Browse files
Add test expectations for mac libmagic
Signed-off-by: Ayan Sinha Mahapatra <asmahapatra@aboutcode.org>
1 parent 939cbf8 commit cecc04a

15 files changed

+122
-5
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ pyvenv.cfg
5656

5757
# Various junk and temp files
5858
.DS_Store
59-
*~
6059
.*.sw[po]
6160
.build
6261
.ve

src/typecode/contenttype.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class Type(object):
163163
)
164164

165165
# FIXME: we should use an introspectable attrs class instead
166-
# ATTENTION: keep this in sync with sloats and properties
166+
# ATTENTION: keep this in sync with slots and properties
167167
text_attributes = [
168168
"filetype_file",
169169
"mimetype_file",
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
filetype_file: PE32+ executable for WINE stub (DLL), x86-64, 3 sections
2+
mimetype_file: application/vnd.microsoft.portable-executable
3+
mimetype_python: application/x-msdownload
4+
is_file: yes
5+
is_regular: yes
6+
size: 3394
7+
is_binary: yes
8+
contains_text: yes
9+
is_winexe: yes
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
filetype_file: DER Encoded PKCS#7 Signed Data
2+
mimetype_file: application/octet-stream
3+
is_file: yes
4+
is_regular: yes
5+
size: 3487
6+
is_binary: yes
7+
is_data: no
8+
contains_text: yes
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
filetype_file: Java source, ASCII text, with CRLF line terminators
2+
mimetype_file: text/x-java
3+
mimetype_python: text/x-java-source
4+
filetype_pygment: Java
5+
programming_language: Java
6+
is_file: yes
7+
is_regular: yes
8+
size: 4116
9+
is_text: yes
10+
is_data: no
11+
contains_text: yes
12+
is_java_source: yes
13+
is_source: yes
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
filetype_file: Unicode text, UTF-8 text
2+
mimetype_file: text/plain
3+
filetype_pygment: Scala
4+
programming_language: Scala
5+
is_file: yes
6+
is_regular: yes
7+
size: 4500
8+
is_text: yes
9+
contains_text: yes
10+
is_source: yes
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
filetype_file: PE32 executable for MS Windows 4.00 (console), Intel i386 (stripped to external PDB), 5 sections
2+
mimetype_file: application/vnd.microsoft.portable-executable
3+
mimetype_python: application/x-msdownload
4+
is_file: yes
5+
is_regular: yes
6+
size: 45056
7+
is_binary: yes
8+
contains_text: yes
9+
is_winexe: yes
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
filetype_file: PE32 executable for MS Windows 4.00 (DLL), Intel i386 (stripped to external PDB), 8 sections
2+
mimetype_file: application/vnd.microsoft.portable-executable
3+
mimetype_python: application/x-msdownload
4+
is_file: yes
5+
is_regular: yes
6+
size: 72192
7+
is_binary: yes
8+
contains_text: yes
9+
is_winexe: yes
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
filetype_file: CSV ASCII text
2+
mimetype_file: text/csv
3+
mimetype_python: application/pdf
4+
is_file: yes
5+
is_regular: yes
6+
size: 2194
7+
is_text: yes
8+
contains_text: yes
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
filetype_file: Netpbm image data, size = 62 x 23, greymap, ASCII text
2+
mimetype_file: image/x-portable-graymap
3+
mimetype_python: image/x-portable-graymap
4+
is_file: yes
5+
is_regular: yes
6+
size: 5458
7+
is_binary: yes
8+
is_media: yes

0 commit comments

Comments
 (0)