@@ -192,6 +192,8 @@ def test_FeatureCodeReferencesDetailAPIView__responds_200_with_code_references_f
192192 assert response .data ["last_scanned_at" ] == "2099-01-02T11:00:00Z"
193193 assert len (references := response .data ["code_references" ]) == 3
194194 assert references [0 ]["scanned_at" ] == "2099-01-01T10:00:00Z"
195+ assert references [0 ]["vcs_provider" ] == "github"
196+ assert references [0 ]["repository_url" ] == "https://github.flagsmith.com/backend/"
195197 assert references [0 ]["revision" ] == "backend-1"
196198 assert references [1 ]["scanned_at" ] == "2099-01-02T11:00:00Z"
197199 assert references [0 ]["file_path" ] == "backend/file1.py"
@@ -200,13 +202,17 @@ def test_FeatureCodeReferencesDetailAPIView__responds_200_with_code_references_f
200202 "https://github.flagsmith.com/backend/blob/backend-1/backend/file1.py#L20"
201203 )
202204 assert references [1 ]["scanned_at" ] == "2099-01-02T11:00:00Z"
205+ assert references [1 ]["vcs_provider" ] == "github"
206+ assert references [1 ]["repository_url" ] == "https://github.flagsmith.com/frontend/"
203207 assert references [1 ]["revision" ] == "frontend-2"
204208 assert references [1 ]["file_path" ] == "frontend/file1.js"
205209 assert references [1 ]["line_number" ] == 12
206210 assert references [1 ]["permalink" ] == (
207211 "https://github.flagsmith.com/frontend/blob/frontend-2/frontend/file1.js#L12"
208212 )
209213 assert references [2 ]["scanned_at" ] == "2099-01-02T11:00:00Z"
214+ assert references [2 ]["vcs_provider" ] == "github"
215+ assert references [2 ]["repository_url" ] == "https://github.flagsmith.com/frontend/"
210216 assert references [2 ]["revision" ] == "frontend-2"
211217 assert references [2 ]["file_path" ] == "frontend/file2.js"
212218 assert references [2 ]["line_number" ] == 5
0 commit comments