Commit 2f96dd3 1 parent 0e232c5 commit 2f96dd3 Copy full SHA for 2f96dd3
File tree 3 files changed +16
-4
lines changed
3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ jobs:
123
123
- name : Run test suite using pytest
124
124
run : |
125
125
pytest message_ix_models \
126
- -m "not snapshot" \
126
+ -m "not (ece_db or snapshot) " \
127
127
-rA --verbose --color=yes --durations=20 \
128
128
--cov-report=term-missing --cov-report=xml \
129
129
--numprocesses=auto \
Original file line number Diff line number Diff line change 1
1
# Modules containing fixtures to use in testing
2
- pytest_plugins = ["ixmp.testing" , "message_ix_models.testing" ]
2
+ pytest_plugins = [
3
+ "genno.testing" ,
4
+ "ixmp.testing" ,
5
+ "message_ix_models.testing" ,
6
+ ]
Original file line number Diff line number Diff line change @@ -130,10 +130,18 @@ module = ["ixmp.*"]
130
130
no_implicit_optional = false
131
131
132
132
[tool .pytest .ini_options ]
133
- # Disable faulthandler plugin on Windows to prevent spurious console noise
134
- addopts = " -p no:faulthandler --cov=message_ix_models --cov-report="
133
+ # Default options for invoking pytest
134
+ # - Skip tests with the "ece_db" marker
135
+ # - Disable faulthandler plugin on Windows to prevent spurious console noise
136
+ # - No coverage report
137
+ addopts = """
138
+ -m "not ece_db"
139
+ -p no:faulthandler
140
+ --cov=message_ix_models --cov-report="""
135
141
filterwarnings = " ignore:distutils Version classes.*:DeprecationWarning"
136
142
markers = [
143
+ " ece_db: Tests requiring access to IIASA ECE internal databases" ,
144
+ " slow: Tests that typically take more than ~45 seconds wall time" ,
137
145
" snapshot: Slow tests using the public MESSAGEix-GLOBIOM baseline snapshot" ,
138
146
]
139
147
You can’t perform that action at this time.
0 commit comments