Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowXBoss696 committed Apr 18, 2024
1 parent 92578b5 commit f3a1e31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fastboot/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __str__(self) -> str:
vmax: int = 30

for key in self._store:
value = self._store[key]
value = self._store[key].get_value()
if callable(value):
value = f"<{value.__qualname__}()>"
value_str = str(value)
Expand Down
3 changes: 2 additions & 1 deletion tests/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,5 @@ def test_print_app_preference(preferences: AppPreferences) -> None:
print(output)

assert len(output) > 0, "No output printed"
assert "dummy_pref" in output, "Dummy preference value is not printed correctly"
assert "dummy_pref" in output, "Dummy preference key is not printed correctly"
assert "default_value" in output or "new_value" in output, "Dummy preference value is not printed correctly"

0 comments on commit f3a1e31

Please sign in to comment.