mirror of
https://github.com/p2p-ld/nwb-linkml.git
synced 2025-01-10 06:04:28 +00:00
lint
This commit is contained in:
parent
b610f32c4b
commit
7cb8eea6fe
2 changed files with 3 additions and 3 deletions
|
@ -340,7 +340,7 @@ class DynamicTableMixin(BaseModel):
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
except Exception:
|
except Exception:
|
||||||
raise e
|
raise e from None
|
||||||
|
|
||||||
|
|
||||||
class VectorDataMixin(BaseModel, Generic[T]):
|
class VectorDataMixin(BaseModel, Generic[T]):
|
||||||
|
|
|
@ -22,7 +22,7 @@ def test_init_logger(capsys, tmp_path):
|
||||||
captured = capsys.readouterr()
|
captured = capsys.readouterr()
|
||||||
assert "WARNING" in captured.out
|
assert "WARNING" in captured.out
|
||||||
|
|
||||||
with open(log_file, "r") as lfile:
|
with open(log_file) as lfile:
|
||||||
log_str = lfile.read()
|
log_str = lfile.read()
|
||||||
assert "WARNING" in log_str
|
assert "WARNING" in log_str
|
||||||
|
|
||||||
|
@ -30,6 +30,6 @@ def test_init_logger(capsys, tmp_path):
|
||||||
logger.info(info_msg)
|
logger.info(info_msg)
|
||||||
captured = capsys.readouterr()
|
captured = capsys.readouterr()
|
||||||
assert "INFO" in captured.out
|
assert "INFO" in captured.out
|
||||||
with open(log_file, "r") as lfile:
|
with open(log_file) as lfile:
|
||||||
log_str = lfile.read()
|
log_str = lfile.read()
|
||||||
assert "INFO" not in log_str
|
assert "INFO" not in log_str
|
||||||
|
|
Loading…
Reference in a new issue