test: move test_temp_data_dir to store tests

Refs: OPS-70
This commit is contained in:
Christoph J. Scherr 2025-03-23 13:33:15 +01:00
parent e700c0d4cb
commit 0c0554e931
No known key found for this signature in database
GPG key ID: 9EB784BB202BB7BB
2 changed files with 10 additions and 10 deletions

View file

@ -3,7 +3,6 @@
from __future__ import annotations
import os
import json
from pytest_httpserver import HTTPServer
import requests
@ -21,15 +20,6 @@ from senju.haiku import Haiku # noqa: F401
# Rust's libtest
def test_temp_data_dir(temp_data_dir):
print(temp_data_dir)
testpath = temp_data_dir / "__test"
with open(testpath, "w") as f:
f.write("that dir actually works")
os.remove(testpath)
assert not os.path.exists(testpath)
def test_create_haiku():
haiku = Haiku(["line number 1", "line number 2", "line number 3"])
assert haiku.lines[0] == "line number 1"