platform/angel_orm_postgres/test/all_test.dart

28 lines
629 B
Dart
Raw Normal View History

2019-02-14 19:23:37 +00:00
import 'dart:async';
2019-02-14 18:36:53 +00:00
import 'package:angel_orm_postgres/angel_orm_postgres.dart';
2019-02-14 19:23:37 +00:00
import 'package:angel_orm_test/angel_orm_test.dart';
import 'package:postgres/postgres.dart';
2019-02-14 18:36:53 +00:00
import 'package:test/test.dart';
void main() {
2019-02-14 19:23:37 +00:00
PostgreSQLConnection _connect() {
return PostgreSQLConnection('localhost', 5432, 'angel_orm_test');
}
group('single', () {
PostgreSqlExecutor executor;
PostgreSQLConnection c = _connect();
setUp(() async {
var c = _connect();
await c.open();
executor = PostgreSqlExecutor(c);
});
tearDown(() => executor.close());
ormTests(() => executor);
});
}