mirror of
https://github.com/p2p-ld/nwb-linkml.git
synced 2024-11-12 17:54:29 +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:
|
||||
raise e
|
||||
raise e from None
|
||||
|
||||
|
||||
class VectorDataMixin(BaseModel, Generic[T]):
|
||||
|
|
|
@ -22,7 +22,7 @@ def test_init_logger(capsys, tmp_path):
|
|||
captured = capsys.readouterr()
|
||||
assert "WARNING" in captured.out
|
||||
|
||||
with open(log_file, "r") as lfile:
|
||||
with open(log_file) as lfile:
|
||||
log_str = lfile.read()
|
||||
assert "WARNING" in log_str
|
||||
|
||||
|
@ -30,6 +30,6 @@ def test_init_logger(capsys, tmp_path):
|
|||
logger.info(info_msg)
|
||||
captured = capsys.readouterr()
|
||||
assert "INFO" in captured.out
|
||||
with open(log_file, "r") as lfile:
|
||||
with open(log_file) as lfile:
|
||||
log_str = lfile.read()
|
||||
assert "INFO" not in log_str
|
||||
|
|
Loading…
Reference in a new issue