Skip to content

Commit

Permalink
Fix lint in unit test metobs
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcth committed Jan 9, 2024
1 parent aaa10da commit 31abd1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/test_unit_metobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def test_unit_baselevel_get_url(
"""
level = BaseLevel()

if type(expected_result) != str:
if isinstance(expected_result, str):
with pytest.raises(expected_result):
level._get_url(data, key, parameters, data_type)
return None
Expand Down

0 comments on commit 31abd1b

Please sign in to comment.