Commit caf1c297 authored by Tyler Reddy's avatar Tyler Reddy
Browse files

TST: add test for unsupported rec

* add a test case that verifies that an appropriate
`logger` warning is produced for unsupported records
fed to the `mod_read_all_records()` method
of `DarshanReport`

* the warning code is not currently covered by tests
on `master`
parent 65ff2d3f
......@@ -46,6 +46,19 @@ def test_load_records():
assert 1 == len(['records']['POSIX'])
def test_unsupported_record_load(caplog, unsupported_record):
# check for appropriate logger warning when attempting to
# load unsupported record
report = darshan.DarshanReport("tests/input/sample.darshan")
for record in caplog.records:
assert 'Currently unsupported' in record.message
assert unsupported_record in record.message
def test_internal_references():
Test if the reference ids match. This tests mainly serves to make
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment