mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-23 15:19:38 +02:00
Fix duplicate category creation on import (#791)
* Repro * Fix * Update signage
This commit is contained in:
parent
77f166a5f8
commit
41c991384a
4 changed files with 24 additions and 12 deletions
|
@ -2,8 +2,9 @@ module ImportTestHelper
|
|||
def valid_csv_str
|
||||
<<-ROWS
|
||||
date,name,category,amount
|
||||
2024-01-01,Starbucks drink,Food,20
|
||||
2024-01-02,Amazon stuff,Shopping,200
|
||||
2024-01-01,Starbucks drink,Food,-20
|
||||
2024-01-02,Amazon stuff,Shopping,-200
|
||||
2024-01-03,Paycheck,Income,1000
|
||||
ROWS
|
||||
end
|
||||
|
||||
|
@ -17,8 +18,8 @@ module ImportTestHelper
|
|||
def valid_csv_with_missing_data
|
||||
<<-ROWS
|
||||
date,name,category,"optional id",amount
|
||||
2024-01-01,Drink,Food,1234,200
|
||||
2024-01-02,,,,100
|
||||
2024-01-01,Drink,Food,1234,-200
|
||||
2024-01-02,,,,-100
|
||||
ROWS
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue