chore(app): сгенерированный Dart-клиент из OpenAPI
openapi-generator-cli -g dart-dio. Генерируется, но коммитится: CI ловит дрейф openapi/openapi.json, а приложение собирается без запуска генератора. Пересобирается через just gen-client после любого изменения роутов.
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
|
||||
/// tests for RulesApi
|
||||
void main() {
|
||||
final instance = FintrackerApi().getRulesApi();
|
||||
|
||||
group(RulesApi, () {
|
||||
// Apply
|
||||
//
|
||||
// Re-run the whole metric refresh so edited rules take effect everywhere at once.
|
||||
//
|
||||
//Future<RefreshLogOut> rulesApply() async
|
||||
test('test rulesApply', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Create
|
||||
//
|
||||
//Future<RuleOut> rulesCreate(RuleCreate ruleCreate) async
|
||||
test('test rulesCreate', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Delete
|
||||
//
|
||||
//Future rulesDelete(int ruleId) async
|
||||
test('test rulesDelete', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List
|
||||
//
|
||||
//Future<List<RuleOut>> rulesList() async
|
||||
test('test rulesList', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Patch
|
||||
//
|
||||
//Future<RuleOut> rulesPatch(int ruleId, RulePatch rulePatch) async
|
||||
test('test rulesPatch', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Stale
|
||||
//
|
||||
// Enabled rules that matched nothing in the latest refresh: the payee was renamed, or the transaction was re-categorised in ZenMoney.
|
||||
//
|
||||
//Future<List<RuleOut>> rulesStale() async
|
||||
test('test rulesStale', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user