Skip to content

Commit

Permalink
Fixed failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidTheProgrammer committed Oct 8, 2024
1 parent a4141a3 commit cee72b0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/points/models/test_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ def test_search_vector_content(self):
)
assert Location.objects.all().count() == 1
location = Location.objects.all().first()
assert location.content_search == "'attribute1':3A 'attribute2':7A 'key':2A,6A 'test':1A 'valu':4A,8A 'value1':5A 'value2':9A"
assert location.content_search == "'attribute1':3A 'attribute2':7A 'key':2A,6A 'test':1A 'value':4A,8A 'value1':5A 'value2':9A"
2 changes: 1 addition & 1 deletion tests/profile/admin/test_profile_highlights_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ def test_fieldset(self, mocked_request, profile_highlight):
base_fields = list(ma.get_form(mocked_request, profile_highlight).base_fields)

assert base_fields == [
"label", "indicator", "subindicator", "denominator", "change_reason"
"label", "indicator", "subindicator", "denominator", "display_format", "change_reason"
]
2 changes: 1 addition & 1 deletion tests/profile/admin/test_profile_key_metrics_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ def test_fieldset(self, mocked_request, profile_key_metric):
base_fields = list(ma.get_form(mocked_request, profile_key_metric).base_fields)

assert base_fields == [
"subcategory", "label", "variable", "subindicator", "denominator", "change_reason"
"subcategory", "label", "variable", "subindicator", "denominator", "display_format", "change_reason"
]
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ProfileKeyMetricsAdmin(SortableAdminMixin, BaseAdminModel, HistoryAdmin):

fieldsets = (
("Profile fields", {
"fields": ("profile", "subcategory", "label", "variable", "subindicator", "denominator")
"fields": ("profile", "subcategory", "label", "variable", "subindicator", "denominator", "display_format")
}),
)
form = ProfileKeyMetricsForm
Expand Down

0 comments on commit cee72b0

Please sign in to comment.