Files
2024-02-15 17:01:50 +00:00

18 lines
414 B
Python

import pytest
from sentry.interfaces.base import get_interface
def test_get_interface_does_not_let_through_disallowed_name():
with pytest.raises(ValueError):
get_interface("subprocess")
def test_get_interface_allows_http():
from sentry.interfaces.http import Http
result = get_interface("request")
assert result is Http
result = get_interface("request")
assert result is Http