Skip to content

Commit

Permalink
add missing test for static_logo_relative_url property
Browse files Browse the repository at this point in the history
  • Loading branch information
FraCata00 committed Apr 15, 2024
1 parent b4d8d0e commit ee8c179
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ def test_static_path(self):
# in the `path` argument of the `static_logo_path` field
assert static_logo_directory_path() == settings.LOCAL_FILE_DIR

def test_property_static_logo(self):
theme = Theme.objects.get_active()
theme.static_logo_path = settings.LOCAL_FILE_DIR + "/fake"
theme.save()

assert theme.static_logo_relative_url == "../fake"


# class AdminInterfaceModelsMultiDBTestCase(TestCase):
# databases = ["default", "replica"]
Expand Down

0 comments on commit ee8c179

Please sign in to comment.