Disable Realbooru while API is offline

This commit is contained in:
2026-05-25 14:55:42 +03:00
parent ea39cf8567
commit 3bf7fe6305
8 changed files with 29 additions and 9 deletions
+4
View File
@@ -74,6 +74,10 @@ void main() {
'e926',
'realbooru',
]);
expect(
providers.singleWhere((provider) => provider.id == 'realbooru').enabled,
isFalse,
);
});
test('settings saveEnabledProviders updates provider configs', () async {
+1 -1
View File
@@ -210,7 +210,7 @@ void main() {
.where((provider) => provider.id == 'realbooru')
.single;
expect(realbooru.enabled, isTrue);
expect(realbooru.enabled, isFalse);
expect(realbooru.apiType, 'realbooru');
expect(realbooru.baseUrl, 'https://realbooru.com');
});