Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fact_helper_file
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
fact_helper_file
Commits
b8efda59
Commit
b8efda59
authored
2 years ago
by
Jörg Stucke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed test
parent
a9412f34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
test_type.py
test/unit/test_type.py
+1
-1
No files found.
test/unit/test_type.py
View file @
b8efda59
...
...
@@ -7,7 +7,7 @@ def test_get_file_type_system_magic():
zip_file
=
Path
(
__file__
)
.
parent
.
parent
/
'data'
/
'test.zip'
file_type
=
get_file_type_from_path
(
str
(
zip_file
))
assert
file_type
[
'mime'
]
==
'application/zip'
,
'mime type not correct'
assert
file_type
[
'full'
]
==
'Zip archive data, at least v2.0 to extract'
,
'full type not correct'
assert
file_type
[
'full'
]
.
startswith
(
'Zip archive data, at least v2.0 to extract'
)
,
'full type not correct'
assert
file_type
==
get_file_type_from_binary
(
zip_file
.
read_bytes
())
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment