forked from IDAES/idaes-pse
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore ability to run pytest on individual files or directories (IDA…
…ES#1362) * Remove --pyargs idaes from pytest.ini * Move markers definition from pytest.ini to top-level conftest.py * Add --pyargs idaes to pytest CLI opts in GHA workflows * Remove duplicated pytest_configure() definition * Disable pytest ignoring warnings * Format with Black
- Loading branch information
1 parent
38e67db
commit c09433b
Showing
4 changed files
with
46 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,7 @@ | ||
[pytest] | ||
addopts = --pyargs idaes | ||
--durations=100 | ||
-W ignore | ||
addopts = --durations=100 | ||
--durations-min=2 | ||
log_file = pytest.log | ||
log_file_date_format = %Y-%m-%dT%H:%M:%S | ||
log_file_format = %(asctime)s %(levelname)-7s <%(filename)s:%(lineno)d> %(message)s | ||
log_file_level = INFO | ||
markers = | ||
build: test of model build methods | ||
cubic_root : test requires the compiled cubic root finder | ||
iapws: test requires the compiled IAPWS95 property package | ||
initialization: test of initialization methods. These generally require a solver as well | ||
solver: test requires a solver | ||
ui: tests of an aspect of the ui | ||
unit: quick tests that do not require a solver, must run in <2s | ||
component: quick tests that may require a solver | ||
integration: long duration tests | ||
performance: tests for the IDAES performance testing suite | ||
log_file_level = INFO |