Skip to content

Commit

Permalink
Move to PyO3 0.22 and add first signature test.
Browse files Browse the repository at this point in the history
  • Loading branch information
JanEricNitschke committed Jun 26, 2024
1 parent f2ca2d9 commit c51bf6e
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 30 deletions.
58 changes: 29 additions & 29 deletions src/python/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ crate-type = ["cdylib"]

[dependencies]
ahash = "0.8.3"
pyo3 = { version = "0.21", features = ["extension-module"] }
pyo3 = { version = "0.22", features = ["extension-module"] }
polars = "0.24.3"
polars-arrow = "0.24.3"
derive_more = "0.99.17"
Expand Down
18 changes: 18 additions & 0 deletions src/python/tests/signature_tests.py
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()

0 comments on commit c51bf6e

Please sign in to comment.