customer stats test fixed
This commit is contained in:
parent
6527d1e36c
commit
c5341af3e7
2 changed files with 4 additions and 4 deletions
|
@ -17,7 +17,7 @@ SELECT "value",
|
|||
"seller_id",
|
||||
DATETIME(STRFTIME('%Y-%m-%d %H:00:00',"purchase_time")) AS "quantised_hours",
|
||||
DATETIME(STRFTIME('%Y-%m-%d 00:00:00',"purchase_time")) AS "quantised_days",
|
||||
DATETIME(STRFTIME('%Y-%m-%d 00:00:00',"purchase_time", 'weekday 1')) AS "quantised_weeks"
|
||||
DATETIME(STRFTIME('%Y-%m-%d 00:00:00',"purchase_time",'weekday 0','-6 days')) AS "quantised_weeks"
|
||||
FROM "transactions"
|
||||
/);
|
||||
|
||||
|
|
|
@ -49,11 +49,11 @@ $t->post_ok('/api/stats/customer' => json => {
|
|||
})
|
||||
->status_is(200)->or($framework->dump_error)
|
||||
->json_is('/weeks', {
|
||||
first => 2,
|
||||
second => 21,
|
||||
first => 20,
|
||||
second => 20,
|
||||
max => 22,
|
||||
sum => 118,
|
||||
count => 7,
|
||||
count => 6,
|
||||
})
|
||||
->or($framework->dump_error)
|
||||
->json_is('/sectors', {
|
||||
|
|
Reference in a new issue