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
|
|
@ -26,4 +26,4 @@ def test_get_specs() -> None:
|
||||||
key = "f_P/q1 q2/1/0/0"
|
key = "f_P/q1 q2/1/0/0"
|
||||||
specs = json.loads(input.get_specs(key, parameters))
|
specs = json.loads(input.get_specs(key, parameters))
|
||||||
assert specs['quarks'] == ['a', 'b']
|
assert specs['quarks'] == ['a', 'b']
|
||||||
assert specs['wf1'][0] == [1, [0, 0]]
|
assert specs['wf1'][0] == [1, [0, 0]]
|
||||||
|
|
|
||||||
|
|
@ -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