-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to PyO3 0.22 and add first signature test.
- Loading branch information
1 parent
f2ca2d9
commit c51bf6e
Showing
3 changed files
with
48 additions
and
30 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 unittest import TestCase | ||
from demoparser2 import DemoParser | ||
import pandas as pd | ||
import unittest | ||
|
||
class SignatureTest(TestCase): | ||
|
||
def test_parse_header_signature(self): | ||
parser = DemoParser("tests/data/test.dem") | ||
header = parser.parse_header() | ||
self.assertTrue(isinstance(header, dict)) | ||
for key, value in header.items(): | ||
self.assertTrue(isinstance(key, str)) | ||
self.assertTrue(isinstance(value, str)) | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |