Skip to content

Commit

Permalink
temp: linter fixes that we'll squash
Browse files Browse the repository at this point in the history
  • Loading branch information
ormsbee committed Oct 14, 2024
1 parent 55b07c1 commit 40223a1
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Tests for static asset files in Learning-Core-based Content Libraries
"""
from uuid import UUID
from unittest import skip

from opaque_keys.edx.keys import UsageKey

Expand All @@ -27,6 +26,7 @@
I'm Anant Agarwal, I'm the president of edX,
"""


@skip_unless_cms
class ContentLibrariesStaticAssetsTest(ContentLibrariesRestApiTest):
"""
Expand Down Expand Up @@ -125,7 +125,6 @@ def setUp(self):
self.component = get_component_from_usage_key(usage_key)
self.draft_component_version = self.component.versioning.draft


def test_good_responses(self):
get_response = self.client.get(
f"/library_assets/{self.draft_component_version.uuid}/static/test.svg"
Expand All @@ -139,7 +138,6 @@ def test_good_responses(self):
)
assert good_head_response.headers == get_response.headers


def test_missing(self):
"""Test asset requests that should 404."""
# Non-existent version...
Expand All @@ -162,7 +160,6 @@ def test_missing(self):
)
assert response.status_code == 404


def test_anonymous_user(self):
"""Anonymous users shouldn't get access to library assets."""
self.client.logout()
Expand Down

0 comments on commit 40223a1

Please sign in to comment.