Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcgrady committed Jul 27, 2022
1 parent f4b2051 commit b6429b6
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions lib/tests/streamlit/components_test.py
Expand Up @@ -442,9 +442,7 @@ def test_outside_component_root_request(self):
# We don't need the return value in this case.
declare_component("test", path=PATH)

response = self._request_component(
"components_test.test//etc/hosts"
)
response = self._request_component("components_test.test//etc/hosts")

self.assertEqual(403, response.code)
self.assertEqual(b"forbidden", response.body)
Expand All @@ -457,9 +455,7 @@ def test_relative_outside_component_root_request(self):
# We don't need the return value in this case.
declare_component("test", path=PATH)

response = self._request_component(
"components_test.test/../foo"
)
response = self._request_component("components_test.test/../foo")

self.assertEqual(403, response.code)
self.assertEqual(b"forbidden", response.body)
Expand All @@ -476,9 +472,7 @@ def test_symlink_outside_component_root_request(self):
"streamlit.components.v1.components.os.path.realpath",
side_effect=[PATH, "/etc/hosts"],
):
response = self._request_component(
"components_test.test"
)
response = self._request_component("components_test.test")

self.assertEqual(403, response.code)
self.assertEqual(b"forbidden", response.body)
Expand Down

0 comments on commit b6429b6

Please sign in to comment.