mirror of
https://github.com/senju1337/senju.git
synced 2025-12-24 07:39:29 +00:00
test: move test_temp_data_dir to store tests
Refs: OPS-70
This commit is contained in:
parent
e700c0d4cb
commit
0c0554e931
2 changed files with 10 additions and 10 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue