Commit 5eae5595 authored by Moul's avatar Moul

[mod] Revert changes made for Poetry 1.0.0b3 now fixed in b4:

- 'poetry run' no longer needs `--`.

Revert "[fix] Call 'poetry run silkaj' tests with '--'"
Revert "[fix] 'poetry run' cli parsing changed in 1.0.0b3:"

This reverts commit f335a2bd.
This reverts commit 4f772671.
parent 5b990cb5
Pipeline #7161 passed with stages
in 4 minutes and 52 seconds
...@@ -63,8 +63,8 @@ tests-3.7-coverage: ...@@ -63,8 +63,8 @@ tests-3.7-coverage:
tags: [poetry-78] tags: [poetry-78]
script: script:
- poetry install - poetry install
- poetry run -- pytest --cov silkaj --cov-report html:cov_html - poetry run pytest --cov silkaj --cov-report html:cov_html
- poetry run -- coverage-badge -o cov_html/coverage.svg - poetry run coverage-badge -o cov_html/coverage.svg
artifacts: artifacts:
paths: paths:
- cov_html - cov_html
......
...@@ -37,5 +37,5 @@ You might need to enter Poetry shell to access development tools such as `pytest ...@@ -37,5 +37,5 @@ You might need to enter Poetry shell to access development tools such as `pytest
Add following alias to your shell configuration: Add following alias to your shell configuration:
```bash ```bash
alias silkaj="cd /path/to/silkaj/silkaj && poetry run -- silkaj" alias silkaj="cd /path/to/silkaj/silkaj && poetry run silkaj"
``` ```
from subprocess import check_output from subprocess import check_output
silkaj = ["poetry", "run", "--", "bin/silkaj"] silkaj = ["poetry", "run", "bin/silkaj"]
def test_info(): def test_info():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment