fixes before build
This commit is contained in:
@@ -39,3 +39,70 @@ Future<void> pumpUntilFound(
|
||||
}
|
||||
throw TestFailure('Timed out waiting for $finder');
|
||||
}
|
||||
|
||||
const _seedTs = '2026-08-01T00:00:00.000';
|
||||
|
||||
Future<void> seedCaseConflictCatalog(ProductRepository repository) async {
|
||||
await repository.replaceAllData(
|
||||
darkMode: false,
|
||||
supermarkets: [
|
||||
{'id': 1, 'name': 'Jumbo', 'color': 0xFFEEC21B, 'sort_order': 0},
|
||||
],
|
||||
products: [
|
||||
{
|
||||
'id': 1,
|
||||
'name': 'Broccoli',
|
||||
'normalized_name': 'BROCCOLI_A',
|
||||
'last_price': 1.5,
|
||||
'times_seen': 1,
|
||||
'favourite': 0,
|
||||
'supermarket': 'Jumbo',
|
||||
'created_at': _seedTs,
|
||||
'updated_at': _seedTs,
|
||||
},
|
||||
{
|
||||
'id': 2,
|
||||
'name': 'BROCCOLI',
|
||||
'normalized_name': 'BROCCOLI_B',
|
||||
'last_price': 1.8,
|
||||
'times_seen': 1,
|
||||
'favourite': 0,
|
||||
'supermarket': 'Jumbo',
|
||||
'created_at': _seedTs,
|
||||
'updated_at': _seedTs,
|
||||
},
|
||||
],
|
||||
shops: [
|
||||
{
|
||||
'id': 1,
|
||||
'supermarket': 'Jumbo',
|
||||
'shopped_at': '2026-08-01T00:00:00.000',
|
||||
'total': 1.5,
|
||||
'created_at': _seedTs,
|
||||
},
|
||||
{
|
||||
'id': 2,
|
||||
'supermarket': 'Jumbo',
|
||||
'shopped_at': '2026-08-02T00:00:00.000',
|
||||
'total': 1.8,
|
||||
'created_at': _seedTs,
|
||||
},
|
||||
],
|
||||
shopItems: [
|
||||
{
|
||||
'id': 1,
|
||||
'shop_id': 1,
|
||||
'product_id': 1,
|
||||
'name': 'Broccoli',
|
||||
'price': 1.5,
|
||||
},
|
||||
{
|
||||
'id': 2,
|
||||
'shop_id': 2,
|
||||
'product_id': 2,
|
||||
'name': 'BROCCOLI',
|
||||
'price': 1.8,
|
||||
},
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user