Visitar URL original
Julia: support `language_version` by ericphanson · Pull Request #3498 · pre-commit/pre-commit · GitHub
Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 18, 2025
commit 3957ac86224e30abcf3ad064a8dc3d0b1de5d677
3 changes: 3 additions & 0 deletions tests/languages/julia_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def test_julia_hook(tmp_path):
expected = (0, b'Hello, world!\n')
assert run_language(tmp_path, julia, 'src/main.jl') == expected


def test_julia_hook_version(tmp_path):
code = """
using Example
Expand All @@ -45,6 +46,7 @@ def test_julia_hook_version(tmp_path):
version='1.10.10',
) == expected


def test_julia_hook_with_startup(tmp_path):
depot_path = tmp_path.joinpath('depot')
depot_path.joinpath('config').mkdir(parents=True)
Expand All @@ -55,6 +57,7 @@ def test_julia_hook_with_startup(tmp_path):
with mock.patch.dict(os.environ, {'JULIA_DEPOT_PATH': depo_path_var}):
test_julia_hook(tmp_path)


def test_julia_hook_manifest(tmp_path):
code = """
using Example
Expand Down