Skip to content

Commit

Permalink
[ci] fixing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Animenosekai committed Aug 17, 2023
1 parent f1909cd commit cb79013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_dump():
def test_loads():
schema = list[str, Object[{"bar": tuple[str, Optional[str], float, int]}]]
assert (cain.loads(b'\x00foo\x00\x00\x00baz\x00\x00\x00\x00\x80?\x00\x02', schema)
== ['foo', {'bar': ('baz', None, 1.0, 2)}])
== ['foo', Object({'bar': ('baz', None, 1.0, 2)})])


def test_load():
Expand All @@ -38,7 +38,7 @@ def test_load():
cain.dump(['foo', {'bar': ('baz', None, 1.0, 2)}], fp, schema)

with open('test.cain', 'r+b') as fp:
assert cain.load(fp, schema) == ['foo', {'bar': ('baz', None, 1.0, 2)}]
assert cain.load(fp, schema) == ['foo', Object({'bar': ('baz', None, 1.0, 2)})]

# Cleanup
Path("test.cain").unlink()

0 comments on commit cb79013

Please sign in to comment.