Skip to content

Commit e3b7f86

Browse files
Merge pull request #14 from dataiku/feature/dss13-sc-191979-fix-integration-tests-run-issues-pytest-command
Use python3 -m pytest instead of pytest to run the tests
2 parents 055effd + 4568429 commit e3b7f86

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,3 +232,5 @@ gradle-app.setting
232232
.vscode/settings.json
233233

234234
.idea/
235+
236+
tests/allure_report

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ unit-tests:
4242
pip install --no-cache-dir -r tests/python/unit/requirements.txt; \
4343
pip install --no-cache-dir -r code-env/python/spec/requirements.txt; \
4444
export PYTHONPATH="$(PYTHONPATH):$(PWD)/python-lib"; \
45-
pytest tests/python/unit --alluredir=tests/allure_report || ret=$$?; exit $$ret \
45+
python3 -m pytest tests/python/unit --alluredir=tests/allure_report || ret=$$?; exit $$ret \
4646
)
4747

4848
integration-tests:
@@ -53,7 +53,7 @@ integration-tests:
5353
source env/bin/activate; \
5454
pip3 install --upgrade pip;\
5555
pip install --no-cache-dir -r tests/python/integration/requirements.txt; \
56-
pytest tests/python/integration --alluredir=tests/allure_report || ret=$$?; exit $$ret \
56+
python3 -m pytest tests/python/integration --alluredir=tests/allure_report || ret=$$?; exit $$ret \
5757
)
5858

5959
tests: unit-tests integration-tests

0 commit comments

Comments
 (0)