Skip to content

Commit c141d1f

Browse files
authored
fix(api): test symbol sources in DetailedProjectSerializer (#56473)
1 parent 251ed66 commit c141d1f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: tests/sentry/api/serializers/test_project.py

+11
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
ReleaseProjectEnvironment,
2727
UserReport,
2828
)
29+
from sentry.models.options.project_option import ProjectOption
2930
from sentry.testutils.cases import SnubaTestCase, TestCase
3031
from sentry.testutils.helpers import with_feature
3132
from sentry.testutils.helpers.datetime import before_now, iso_format
@@ -690,7 +691,17 @@ def test_truncated_latest_release(self):
690691
assert "releases" in result["features"]
691692
assert result["platform"] == self.project.platform
692693
assert result["latestRelease"] == {"version": self.release.version}
694+
695+
def test_symbol_sources(self):
696+
ProjectOption.objects.set_value(
697+
project=self.project,
698+
key="sentry:symbol_sources",
699+
value='[{"id":"1","name":"hello","password":"password",}]',
700+
)
701+
result = serialize(self.project, self.user, DetailedProjectSerializer())
702+
693703
assert "sentry:token" not in result["options"]
704+
assert "sentry:symbol_sources" not in result["options"]
694705

695706

696707
@region_silo_test(stable=True)

0 commit comments

Comments
 (0)