lint
All checks were successful
Mypy / mypy (push) Successful in 1m12s
Pytest / pytest (3.12) (push) Successful in 1m15s
Pytest / pytest (3.13) (push) Successful in 1m12s
Pytest / pytest (3.14) (push) Successful in 1m15s
Ruff / ruff (push) Successful in 1m2s
Mypy / mypy (pull_request) Successful in 1m11s
Pytest / pytest (3.12) (pull_request) Successful in 1m16s
Pytest / pytest (3.13) (pull_request) Successful in 1m14s
Pytest / pytest (3.14) (pull_request) Successful in 1m15s
Ruff / ruff (pull_request) Successful in 1m2s
All checks were successful
Mypy / mypy (push) Successful in 1m12s
Pytest / pytest (3.12) (push) Successful in 1m15s
Pytest / pytest (3.13) (push) Successful in 1m12s
Pytest / pytest (3.14) (push) Successful in 1m15s
Ruff / ruff (push) Successful in 1m2s
Mypy / mypy (pull_request) Successful in 1m11s
Pytest / pytest (3.12) (pull_request) Successful in 1m16s
Pytest / pytest (3.13) (pull_request) Successful in 1m14s
Pytest / pytest (3.14) (pull_request) Successful in 1m15s
Ruff / ruff (pull_request) Successful in 1m2s
This commit is contained in:
parent
8162758cec
commit
480c04e069
2 changed files with 2 additions and 3 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
from corrlib import tools as tl
|
from corrlib import tools as tl
|
||||||
from configparser import ConfigParser
|
from configparser import ConfigParser
|
||||||
import os
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|
@ -81,5 +80,5 @@ def test_cache_enabled(tmp_path: Path) -> None:
|
||||||
tl.set_config(tmp_path, section, option, "False")
|
tl.set_config(tmp_path, section, option, "False")
|
||||||
assert not tl.cache_enabled(tmp_path)
|
assert not tl.cache_enabled(tmp_path)
|
||||||
tl.set_config(tmp_path, section, option, "lalala")
|
tl.set_config(tmp_path, section, option, "lalala")
|
||||||
with pytest.raises(ValueError) as e_info:
|
with pytest.raises(ValueError):
|
||||||
tl.cache_enabled(tmp_path)
|
tl.cache_enabled(tmp_path)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue