@@ -34,7 +34,7 @@ commands_post =
3434[testenv:format]
3535description = Apply coding style standards to code
3636commands_pre =
37- poetry install --only format
37+ poetry install --only format --no-root
3838commands =
3939 poetry lock --no-update
4040 poetry run ruff --fix {[vars]all_path}
@@ -46,7 +46,7 @@ allowlist_externals =
4646 {[testenv]allowlist_externals}
4747 find
4848commands_pre =
49- poetry install --only lint,format
49+ poetry install --only lint,format --no-root
5050commands =
5151 poetry check --lock
5252 poetry run codespell {[vars]all_path}
@@ -61,7 +61,7 @@ set_env =
6161 juju2: LIBJUJU =" 2.9.44.1"
6262 juju3: LIBJUJU =" 3.2.0.1"
6363commands_pre =
64- poetry install --only main,charm-libs,unit
64+ poetry install --only main,charm-libs,unit --no-root
6565commands =
6666 poetry run coverage run --source ={[vars]src_path} \
6767 -m pytest -v --tb native -s {posargs} {[vars]tests_path}/unit
@@ -80,7 +80,7 @@ pass_env =
8080allowlist_externals =
8181 {[testenv:pack-wrapper]allowlist_externals}
8282commands_pre =
83- poetry install --only integration
83+ poetry install --only integration --no-root
8484 {[testenv:pack-wrapper]commands_pre}
8585commands =
8686 poetry run pytest -v --tb native --log-cli-level =INFO -s {posargs} {[vars]tests_path}/integration/test_backups.py
@@ -99,7 +99,7 @@ pass_env =
9999allowlist_externals =
100100 {[testenv:pack-wrapper]allowlist_externals}
101101commands_pre =
102- poetry install --only integration
102+ poetry install --only integration --no-root
103103 {[testenv:pack-wrapper]commands_pre}
104104commands =
105105 poetry run pytest -v --tb native --log-cli-level =INFO -s {posargs} {[vars]tests_path}/integration/test_charm.py
@@ -118,7 +118,7 @@ pass_env =
118118allowlist_externals =
119119 {[testenv:pack-wrapper]allowlist_externals}
120120commands_pre =
121- poetry install --only integration
121+ poetry install --only integration --no-root
122122 {[testenv:pack-wrapper]commands_pre}
123123commands =
124124 poetry run pytest -v --tb native --log-cli-level =INFO -s {posargs} {[vars]tests_path}/integration/new_relations/test_new_relations.py
@@ -137,7 +137,7 @@ pass_env =
137137allowlist_externals =
138138 {[testenv:pack-wrapper]allowlist_externals}
139139commands_pre =
140- poetry install --only integration
140+ poetry install --only integration --no-root
141141 {[testenv:pack-wrapper]commands_pre}
142142commands =
143143 poetry run pytest -v --tb native --log-cli-level =INFO -s {posargs} {[vars]tests_path}/integration/test_db.py
@@ -156,7 +156,7 @@ pass_env =
156156allowlist_externals =
157157 {[testenv:pack-wrapper]allowlist_externals}
158158commands_pre =
159- poetry install --only integration
159+ poetry install --only integration --no-root
160160 {[testenv:pack-wrapper]commands_pre}
161161commands =
162162 poetry run pytest -v --tb native --log-cli-level =INFO -s {posargs} {[vars]tests_path}/integration/test_db_admin.py
@@ -175,7 +175,7 @@ pass_env =
175175allowlist_externals =
176176 {[testenv:pack-wrapper]allowlist_externals}
177177commands_pre =
178- poetry install --only integration
178+ poetry install --only integration --no-root
179179 {[testenv:pack-wrapper]commands_pre}
180180commands =
181181 poetry run pytest -v --tb native --log-cli-level =INFO -s {posargs} {[vars]tests_path}/integration/ha_tests/test_replication.py
@@ -194,7 +194,7 @@ pass_env =
194194allowlist_externals =
195195 {[testenv:pack-wrapper]allowlist_externals}
196196commands_pre =
197- poetry install --only integration
197+ poetry install --only integration --no-root
198198 {[testenv:pack-wrapper]commands_pre}
199199commands =
200200 poetry run pytest -v --tb native --log-cli-level =INFO -s {posargs} {[vars]tests_path}/integration/ha_tests/test_self_healing.py
@@ -213,7 +213,7 @@ pass_env =
213213allowlist_externals =
214214 {[testenv:pack-wrapper]allowlist_externals}
215215commands_pre =
216- poetry install --only integration
216+ poetry install --only integration --no-root
217217 {[testenv:pack-wrapper]commands_pre}
218218commands =
219219 poetry run pytest -v --tb native --log-cli-level =INFO -s {posargs} {[vars]tests_path}/integration/test_password_rotation.py
@@ -232,7 +232,7 @@ pass_env =
232232allowlist_externals =
233233 {[testenv:pack-wrapper]allowlist_externals}
234234commands_pre =
235- poetry install --only integration
235+ poetry install --only integration --no-root
236236 {[testenv:pack-wrapper]commands_pre}
237237commands =
238238 poetry run pytest -v --tb native --log-cli-level =INFO -s {posargs} {[vars]tests_path}/integration/test_plugins.py
@@ -251,7 +251,7 @@ pass_env =
251251allowlist_externals =
252252 {[testenv:pack-wrapper]allowlist_externals}
253253commands_pre =
254- poetry install --only integration
254+ poetry install --only integration --no-root
255255 {[testenv:pack-wrapper]commands_pre}
256256commands =
257257 poetry run pytest -v --tb native --log-cli-level =INFO -s {posargs} {[vars]tests_path}/integration/test_tls.py
@@ -270,7 +270,7 @@ pass_env =
270270allowlist_externals =
271271 {[testenv:pack-wrapper]allowlist_externals}
272272commands_pre =
273- poetry install --only integration
273+ poetry install --only integration --no-root
274274 {[testenv:pack-wrapper]commands_pre}
275275commands =
276276 poetry run pytest -v --tb native --log-cli-level =INFO -s {posargs} {[vars]tests_path}/integration/ha_tests/test_upgrade.py
@@ -289,7 +289,7 @@ pass_env =
289289allowlist_externals =
290290 {[testenv:pack-wrapper]allowlist_externals}
291291commands_pre =
292- poetry install --only integration
292+ poetry install --only integration --no-root
293293 {[testenv:pack-wrapper]commands_pre}
294294commands =
295295 poetry run pytest -v --tb native --log-cli-level =INFO -s {posargs} {[vars]tests_path}/integration/ha_tests/test_upgrade_from_stable.py
@@ -309,7 +309,7 @@ pass_env =
309309allowlist_externals =
310310 {[testenv:pack-wrapper]allowlist_externals}
311311commands_pre =
312- poetry install --only integration
312+ poetry install --only integration --no-root
313313 {[testenv:pack-wrapper]commands_pre}
314314commands =
315315 poetry run pytest -v --tb native --log-cli-level =INFO -s --ignore ={[vars]tests_path}/unit/ {posargs}
0 commit comments