Skip to content

Commit

Permalink
Drop tests that don't test anything useful
Browse files Browse the repository at this point in the history
  • Loading branch information
legoktm committed Feb 19, 2024
1 parent b4e8271 commit 1a23124
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions client/tests/test_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,6 @@
from tests.helper import app # noqa: F401


def test_path(mocker):
"""
Ensure the resource_filename function is called with the expected args and
the path function under test returns its result.
"""
r = mocker.patch("securedrop_client.resources.resource_filename", return_value="bar")
assert securedrop_client.resources.path("foo") == "bar"
r.assert_called_once_with(securedrop_client.resources.__name__, "images/foo")


def test_load_icon():
"""
Check the load_icon function returns the expected QIcon object.
Expand Down Expand Up @@ -51,16 +41,6 @@ def test_load_image():
assert isinstance(result, QPixmap)


def test_load_css(mocker):
"""
Ensure the resource_string function is called with the expected args and
the load_css function returns its result.
"""
rs = mocker.patch("securedrop_client.resources.resource_string", return_value=b"foo")
assert "foo" == securedrop_client.resources.load_css("foo")
rs.assert_called_once_with(securedrop_client.resources.__name__, "css/foo")


def test_load_movie():
"""
Check the load_movie function returns the expected QMovie object.
Expand Down

0 comments on commit 1a23124

Please sign in to comment.