ordigi/tests/test_dozo.py

20 lines
371 B
Python
Raw Normal View History

2021-08-08 15:33:47 +02:00
import pytest
CONTENT = "content"
class TestDozo:
@pytest.mark.skip()
def test__sort(self):
assert 0
def test_needsfiles(tmpdir):
assert tmpdir
def test_create_file(tmp_path):
d = tmp_path / "sub"
d.mkdir()
p = d / "hello.txt"
p.write_text(CONTENT)
assert p.read_text() == CONTENT
assert len(list(tmp_path.iterdir())) == 1