Skip to content

Commit 459a295

Browse files
committed
test: debug print out uv sync test
1 parent 9ff746a commit 459a295

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
SHELL := /bin/bash
22
.ONESHELL:
3+
.SILENT:
34

45
# Run all test files
56
test: deps test_requirements
@@ -29,37 +30,46 @@ test_requirements:
2930
done
3031

3132
deps/nvim-treesitter:
33+
set -x
3234
@mkdir -p deps
3335
git clone --filter=blob:none https://github.com/nvim-treesitter/nvim-treesitter $@
3436

3537
deps/mini.nvim:
38+
set -x
3639
@mkdir -p deps
3740
git clone --filter=blob:none https://github.com/echasnovski/mini.nvim $@
3841

3942
deps/nvim-dap:
43+
set -x
4044
@mkdir -p deps
4145
git clone --filter=blob:none https://github.com/mfussenegger/nvim-dap $@
4246

4347
deps/nvim-dap-python:
48+
set -x
4449
@mkdir -p deps
4550
git clone --filter=blob:none https://github.com/mfussenegger/nvim-dap-python $@
4651

4752
deps/nvim-lspconfig:
53+
set -x
4854
@mkdir -p deps
4955
git clone --filter=blob:none https://github.com/neovim/nvim-lspconfig $@
5056

5157
deps/nui.nvim:
58+
set -x
5259
@mkdir -p deps
5360
git clone --filter=blob:none https://github.com/MunifTanjim/nui.nvim $@
5461

5562
deps/LuaSnip:
63+
set -x
5664
@mkdir -p deps
5765
git clone --filter=blob:none https://github.com/L3MON4D3/LuaSnip $@
5866

5967
deps/neotest:
68+
set -x
6069
@mkdir -p deps
6170
git clone --filter=blob:none https://github.com/nvim-neotest/neotest $@
6271

6372
deps/neotest-python:
73+
set -x
6474
@mkdir -p deps
6575
git clone --filter=blob:none https://github.com/nvim-neotest/neotest-python $@

tests/test_venv_create.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,13 @@ T['create']['uv_sync'] = function()
4343
child.cmd("e main.py")
4444
child.lua("create.create_venv_with_python('.venv', 'python3')")
4545
child.lua("create.uv_sync('uv.lock', '.venv', function()end, false)")
46-
local python_version = vim.fn.system([[python3 -c 'import sys; print(f"{sys.version_info[0]}.{sys.version_info[1]}", end="")']])
46+
local python_version = vim.fn.system(
47+
[[python3 -c 'import sys; print(f"{sys.version_info[0]}.{sys.version_info[1]}", end="")']])
4748

4849
local dep_path = ("examples/python_projects/uv/.venv/lib/python%s/site-packages/boto3"):format(python_version)
4950

50-
print(dep_path)
51+
print("\n" .. dep_path .. "\n")
52+
print("\n" .. vim.fn.system("ls -l " .. dep_path) .. "\n")
5153
eq(vim.fn.isdirectory(dep_path), 1)
5254
end
5355

0 commit comments

Comments
 (0)