mirror of
https://github.com/senju1337/senju.git
synced 2025-12-24 07:39:29 +00:00
chore: fix line length in tests
This commit is contained in:
parent
74dd2af9ae
commit
40d1148fbe
1 changed files with 10 additions and 8 deletions
|
|
@ -1,15 +1,18 @@
|
||||||
# I do not trust python and it's tests, so I'm testing them. May not be worth much, but at least it shows me a few things.
|
# I do not trust python and it's tests, so I'm testing them. May not be worth
|
||||||
|
# much, but at least it shows me a few things.
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import pytest # noqa: F401 do not remove this import. This is needed for pytest fixtures to work
|
# do not remove this import. This is needed for
|
||||||
|
# pytest fixtures to work
|
||||||
|
import pytest # noqa: F401
|
||||||
|
|
||||||
import senju # noqa: F401
|
import senju # noqa: F401
|
||||||
|
|
||||||
# Note: these weird arguments are an indicator of what should be dome before. For example,
|
# Note: these weird arguments are an indicator of what should be dome
|
||||||
# `temp_data_dir` is a function in `conftest.py`. If we put it in the arguments, it seems
|
# before. For example, `temp_data_dir` is a function in `conftest.py`. If we
|
||||||
# to run before our test, and the return value becomes a local.
|
# put it in the arguments, it seems to run before our test, and the return
|
||||||
#
|
# value becomes a local. This is all very confusing for someone used to
|
||||||
# This is all very confusing for someone used to Rust's libtest
|
# Rust's libtest
|
||||||
|
|
||||||
|
|
||||||
def test_tests_are_loaded():
|
def test_tests_are_loaded():
|
||||||
|
|
@ -22,4 +25,3 @@ def test_temp_data_dir(temp_data_dir):
|
||||||
with open(testpath, "w") as f:
|
with open(testpath, "w") as f:
|
||||||
f.write("that dir actually works")
|
f.write("that dir actually works")
|
||||||
os.remove(testpath)
|
os.remove(testpath)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue