just gen-client — покрывает links, cashflow-broker, ручные цены, imports/pending, goals/income/rebalance/tax/benchmarks.
57 lines
1.4 KiB
Dart
57 lines
1.4 KiB
Dart
import 'package:test/test.dart';
|
|
import 'package:fintracker_api/fintracker_api.dart';
|
|
|
|
|
|
/// tests for ImportsApi
|
|
void main() {
|
|
final instance = FintrackerApi().getImportsApi();
|
|
|
|
group(ImportsApi, () {
|
|
// Commit
|
|
//
|
|
// Write the file's events into the ledger and rebuild every metric.
|
|
//
|
|
//Future<ImportResult> importsCommit(int importId, CommitRequest commitRequest) async
|
|
test('test importsCommit', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Create
|
|
//
|
|
// Upload a report, parse it and show what committing it would do. Writes no event.
|
|
//
|
|
//Future<ImportPreview> importsCreate(MultipartFile file, { int accountId, String parser }) async
|
|
test('test importsCreate', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Delete
|
|
//
|
|
// Drop an uncommitted import. A committed one stays: `raw_*` is append-only.
|
|
//
|
|
//Future importsDelete(int importId) async
|
|
test('test importsDelete', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Get
|
|
//
|
|
// The preview again — recomputed for an uncommitted import, replayed for a committed one.
|
|
//
|
|
//Future<ImportPreview> importsGet(int importId) async
|
|
test('test importsGet', () async {
|
|
// TODO
|
|
});
|
|
|
|
// List
|
|
//
|
|
// Newest imports first, with the counters each was committed with.
|
|
//
|
|
//Future<List<ImportSummary>> importsList({ String status, int limit, int offset }) async
|
|
test('test importsList', () async {
|
|
// TODO
|
|
});
|
|
|
|
});
|
|
}
|