Skip to content

Commit

Permalink
Update to latest pylint (#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
anders-kiaer authored Nov 25, 2021
1 parent edfec8e commit 0ac83c4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ def test_parameter_analysis(dash_duo, app, shared_settings) -> None:
warnings.warn(log.get("message"))
else:
logs.append(log)
assert logs == []
assert not logs
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ def test_reservoir_simulation_timeseries(
warnings.warn(log.get("message"))
else:
logs.append(log)
assert logs == []
assert not logs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_volumetrics_no_sens(dash_duo, app, shared_settings) -> None:
warnings.warn(log.get("message"))
else:
logs.append(log)
assert logs == []
assert not logs


def test_volumetrics_sens(dash_duo, app, shared_settings) -> None:
Expand All @@ -35,4 +35,4 @@ def test_volumetrics_sens(dash_duo, app, shared_settings) -> None:
warnings.warn(log.get("message"))
else:
logs.append(log)
assert logs == []
assert not logs
2 changes: 1 addition & 1 deletion tests/unit_tests/model_tests/test_ensemble_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_ensemble_set_init(testdata_folder):
/ "iter-0",
)
assert emodel.ens_folder == {"iter-0": f"{testdata_folder}/01_drogon_ahm/"}
assert emodel.webviz_store == []
assert not emodel.webviz_store


@pytest.mark.usefixtures("app")
Expand Down
2 changes: 1 addition & 1 deletion webviz_subsurface/_models/ensemble_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def load_ensemble(self) -> ScratchEnsemble:
self.filter_file
)
)
if ensemble.realizations == {}:
if not ensemble.realizations:
raise ValueError(
f"No realizations found for ensemble {self.ensemble_name}, "
f"located at '{self.ensemble_path}'. "
Expand Down

0 comments on commit 0ac83c4

Please sign in to comment.