Skip to content

Commit c8c8be3

Browse files
authored
Fixing typos.
1 parent 449c277 commit c8c8be3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_orjsonl.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,37 +16,37 @@
1616

1717

1818
def test_save(tmp_path):
19-
"""Test `orjsonl.save`."""
19+
"""Test `orjsonl.save()`."""
2020

2121
orjsonl.save(tmp_path / 'test_orjsonl.jsonl', data=DATA)
2222
assert helpers.load(tmp_path / 'test_orjsonl.jsonl') == JSONL.encode('utf-8')
2323

2424

2525
def test_load(tmp_path) -> None:
26-
"""Test `orjsonl.load`."""
26+
"""Test `orjsonl.load()`."""
2727

2828
helpers.save(tmp_path / 'test_orjsonl.jsonl', JSONL.encode('utf-8'))
2929
assert orjsonl.load(tmp_path / 'test_orjsonl.jsonl') == DATA
3030

3131

3232
def test_stream(tmp_path) -> None:
33-
"""Test `orjsonl.stream`."""
33+
"""Test `orjsonl.stream()`."""
3434

3535
helpers.save(tmp_path / 'test_orjsonl.jsonl', JSONL.encode('utf-8'))
3636
assert list(orjsonl.stream(tmp_path / 'test_orjsonl.jsonl')) == DATA
3737

3838

3939
def test_append(tmp_path) -> None:
40-
"""Test `orjsonl.append`."""
40+
"""Test `orjsonl.append()`."""
4141

4242
helpers.save(tmp_path / 'test_orjsonl.jsonl', JSONL.encode('utf-8'))
4343
orjsonl.append(tmp_path / 'test_orjsonl.jsonl', data=DATA[-1])
4444
assert helpers.load(tmp_path / 'test_orjsonl.jsonl') == JSONL.encode('utf-8') + orjson.dumps(DATA[-1]) + b'\n'
4545

4646

4747
def test_extend(tmp_path) -> None:
48-
"""Test `orjsonl.extend`."""
48+
"""Test `orjsonl.extend()`."""
4949

5050
helpers.save(tmp_path / 'test_orjsonl.jsonl', JSONL.encode('utf-8'))
5151
orjsonl.extend(tmp_path / 'test_orjsonl.jsonl', data=DATA[-2:])
52-
assert helpers.load(tmp_path / 'test_orjsonl.jsonl') == JSONL.encode('utf-8') + orjson.dumps(DATA[-2]) + b'\n' + orjson.dumps(DATA[-1]) + b'\n'
52+
assert helpers.load(tmp_path / 'test_orjsonl.jsonl') == JSONL.encode('utf-8') + orjson.dumps(DATA[-2]) + b'\n' + orjson.dumps(DATA[-1]) + b'\n'

0 commit comments

Comments
 (0)