mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-20 01:24:42 +04:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
623af3b5f5
commit
3957ac8622
1 changed files with 3 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ def test_julia_hook(tmp_path):
|
||||||
expected = (0, b'Hello, world!\n')
|
expected = (0, b'Hello, world!\n')
|
||||||
assert run_language(tmp_path, julia, 'src/main.jl') == expected
|
assert run_language(tmp_path, julia, 'src/main.jl') == expected
|
||||||
|
|
||||||
|
|
||||||
def test_julia_hook_version(tmp_path):
|
def test_julia_hook_version(tmp_path):
|
||||||
code = """
|
code = """
|
||||||
using Example
|
using Example
|
||||||
|
|
@ -45,6 +46,7 @@ def test_julia_hook_version(tmp_path):
|
||||||
version='1.10.10',
|
version='1.10.10',
|
||||||
) == expected
|
) == expected
|
||||||
|
|
||||||
|
|
||||||
def test_julia_hook_with_startup(tmp_path):
|
def test_julia_hook_with_startup(tmp_path):
|
||||||
depot_path = tmp_path.joinpath('depot')
|
depot_path = tmp_path.joinpath('depot')
|
||||||
depot_path.joinpath('config').mkdir(parents=True)
|
depot_path.joinpath('config').mkdir(parents=True)
|
||||||
|
|
@ -55,6 +57,7 @@ def test_julia_hook_with_startup(tmp_path):
|
||||||
with mock.patch.dict(os.environ, {'JULIA_DEPOT_PATH': depo_path_var}):
|
with mock.patch.dict(os.environ, {'JULIA_DEPOT_PATH': depo_path_var}):
|
||||||
test_julia_hook(tmp_path)
|
test_julia_hook(tmp_path)
|
||||||
|
|
||||||
|
|
||||||
def test_julia_hook_manifest(tmp_path):
|
def test_julia_hook_manifest(tmp_path):
|
||||||
code = """
|
code = """
|
||||||
using Example
|
using Example
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue