File tree Expand file tree Collapse file tree
packages/uipath-llamaindex/tests/cli Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77
88class TestInit :
9+ def _generate_pyproject (self ):
10+ with open ("pyproject.toml" , "w" ) as f :
11+ f .write (
12+ '[project]\n name = "test-project"\n version = "0.1.0"\n '
13+ 'description = "Test"\n authors = [{name = "Test"}]\n '
14+ 'requires-python = ">=3.11"\n '
15+ )
16+
917 def test_init_basic_config_generation (
1018 self ,
1119 runner : CliRunner ,
@@ -22,6 +30,8 @@ def test_init_basic_config_generation(
2230 with open ("llama_index.json" , "w" ) as f :
2331 f .write (llama_config )
2432
33+ self ._generate_pyproject ()
34+
2535 result = runner .invoke (init )
2636 assert result .exit_code == 0
2737 assert os .path .exists ("entry-points.json" )
@@ -74,6 +84,7 @@ def test_init_custom_config_generation(
7484
7585 with open ("llama_index.json" , "w" ) as f :
7686 f .write (llama_config )
87+ self ._generate_pyproject ()
7788
7889 result = runner .invoke (init )
7990 assert result .exit_code == 0
You can’t perform that action at this time.
0 commit comments