77cb79ed551652147a942c8ff06579d6fffea956

Author
Michael Aquilina <michaelaquilina@gmail.com>
Committer
Michael Aquilina <michaelaquilina@gmail.com>
Date

Message

Separate out test for case where pyproject.toml is available but poetry
not used

Diff

 1diff --git a/tests/test_check_venv.zunit b/tests/test_check_venv.zunit
 2index 538ec46957bb35e1cbd93dc723c481722fa3f30c..4b3b17953e952afa7f9711a433205de18a316950 100644
 3--- a/tests/test_check_venv.zunit
 4+++ b/tests/test_check_venv.zunit
 5@@ -168,7 +168,10 @@
 6     assert $status equals 0
 7     assert "$output" same_as "Switching poetry: \e[1m\e[35mfoobar\e[0m \e[32m[🐍$PYTHON_VERSION]\e[0m"
 8 
 9-    # poetry available, but "poetry run which python" fails because pyproject.toml doesn't use poetry
10+@test 'check_venv - poetry available but pyproject.toml is not setup for poetry' {
11+    PWD="$TARGET/sub-directory"  # Should also work in subdirectories where pyproject.toml is found
12+    touch "$TARGET/pyproject.toml"
13+
14     function poetry {
15         return 1
16     }