File tree 4 files changed +15
-11
lines changed
4 files changed +15
-11
lines changed Original file line number Diff line number Diff line change 28
28
29
29
- name : " [DE/BNA] Data retrieval check"
30
30
run : |
31
- pytest tests/integration/test_int_de_bna.py
31
+ python -m pytest tests/integration/test_int_de_bna.py
32
32
33
33
- name : " [FR] Data retrieval check"
34
34
run : |
35
- pytest tests/integration/test_int_fr_france.py
35
+ python -m pytest tests/integration/test_int_fr_france.py
Original file line number Diff line number Diff line change 45
45
- name : Run tests
46
46
run : |
47
47
pip install -r test/requirements.txt
48
- pytest -m "not check_datasource"
48
+ python -m pytest -m "not check_datasource"
Original file line number Diff line number Diff line change @@ -193,14 +193,14 @@ Before you run the tests you need to install test dependencies by
193
193
pip install -r test/requirements.txt
194
194
```
195
195
196
- You can run all tests under ` /test ` by running the following command:
196
+ You can run all tests by running the following command:
197
197
198
198
``` bash
199
199
# to run all tests, use:
200
- pytest
200
+ python -m pytest
201
201
202
202
# ... or the following to run only the unit tests, i.e. not the integration tests (which run a bit longer):
203
- pytest -m ' not integration_test' -W ignore::DeprecationWarning
203
+ python -m pytest -m ' not integration_test'
204
204
```
205
205
206
206
#### Testdata import / Integration test for the merger
Original file line number Diff line number Diff line change @@ -15,16 +15,20 @@ requires = [
15
15
build-backend = " setuptools.build_meta"
16
16
17
17
[tool .pytest .ini_options ]
18
-
19
- # Set logging for code under test
20
- addopts = " --verbose --capture=no --log-cli-level=DEBUG --log-cli-format='%(asctime)s %(levelname)s %(message)s' --log-cli-date-format='%Y-%m-%d %H:%M:%S' -W ignore::DeprecationWarning"
21
-
18
+ addopts = [
19
+ " --import-mode=importlib" ,
20
+ " --capture=no" ,
21
+ " --log-level=WARN" ,
22
+ " --log-cli-level=DEBUG" ,
23
+ " --log-cli-format='%(asctime)s %(levelname)s %(message)s'" ,
24
+ " --log-cli-date-format='%Y-%m-%d %H:%M:%S'" ,
25
+ " -W ignore::DeprecationWarning"
26
+ ]
22
27
# Limit search for tests to following folders
23
28
testpaths = [
24
29
" test" , # TODO: move content to tests/unit/ folder
25
30
" tests" ,
26
31
]
27
-
28
32
# Declare custom markers
29
33
markers = [
30
34
" integration_test: marks tests as integration tests (deselect with '-m \" not integration_test\" ')" ,
You can’t perform that action at this time.
0 commit comments