forked from gipit/gips
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '463-tif-comparator' into 'dev'
sys test overhaul, iteration 1 Closes #463, #483, #468, #467, and #464 See merge request appliedgeosolutions/gips!485
- Loading branch information
Showing
31 changed files
with
5,011 additions
and
1,422 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ pytest-timeout | |
pytest-mock | ||
pytest-django | ||
scripttest | ||
envoy | ||
envoy # deprecated | ||
sh |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#from __future__ import print_function | ||
|
||
### WHERE I LEFT THIS: | ||
# working on optional test teardown (removal of created files) on test failure/error | ||
# two approaches, probably going with the second one: | ||
# PS this conftest.py only applies to system tests due to location; nifty! | ||
|
||
# https://stackoverflow.com/questions/28198585/pytest-how-to-take-action-on-test-failure/47908872#47908872 | ||
""" | ||
def pytest_exception_interact(node, call, report): | ||
print('pytest_exception_interact') | ||
import pdb; pdb.set_trace() | ||
if report.failed: | ||
print("node:", node) | ||
print("call:", call) | ||
print("report:", report) | ||
# report.outcome == 'failed' | ||
#import pdb; pdb.set_trace() | ||
""" | ||
|
||
# https://docs.pytest.org/en/latest/example/simple.html#making-test-result-information-available-in-fixtures | ||
""" | ||
@pytest.hookimpl(tryfirst=True, hookwrapper=True) | ||
def pytest_runtest_makereport(item, call): | ||
# execute all other hooks to obtain the report object | ||
outcome = yield | ||
rep = outcome.get_result() | ||
# set a report attribute for each phase of a call, which can | ||
# be "setup", "call", "teardown" | ||
setattr(item, "rep_" + rep.when, rep) | ||
""" |
Oops, something went wrong.