Add theme tests

- Add flags to isolate data impl tests
- Make most non-tests private
- Add SQLite tests missed in initial development
This commit is contained in:
2024-02-03 14:01:13 -05:00
parent 8183da7d5f
commit b1a0c207fb
13 changed files with 373 additions and 64 deletions

View File

@@ -18,7 +18,9 @@ type PostgresThemeData(log: ILogger) =
let all () =
log.LogTrace "Theme.all"
Custom.list
$"{Query.selectFromTable Table.Theme} WHERE data ->> '{nameof Theme.Empty.Id}' <> 'admin' ORDER BY id"
$"{Query.selectFromTable Table.Theme}
WHERE data ->> '{nameof Theme.Empty.Id}' <> 'admin'
ORDER BY data ->> '{nameof Theme.Empty.Id}'"
[]
withoutTemplateText