fix: align proof, treatment, metrics and site videos with PDF
All checks were successful
Build and deploy / Validate source (push) Successful in 11s
Build and deploy / Integration suite on a real stack (push) Successful in 5m44s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m22s
All checks were successful
Build and deploy / Validate source (push) Successful in 11s
Build and deploy / Integration suite on a real stack (push) Successful in 5m44s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m22s
This commit is contained in:
@@ -171,15 +171,15 @@ def run():
|
||||
c.execute('''INSERT INTO dtf_local.movements(order_id,from_state,to_state,operator,reason,back,created_at)
|
||||
VALUES(%s,%s,%s,'kanban-test','',false,%s::timestamptz)''', (order_id, frm, to, f'{alone} {hour}:00-03'))
|
||||
day = client.call(f'/operator/stats?start={alone}&end={alone}', operator=True)
|
||||
assert day['stages']['tra'] == {'orders': 1, 'passages': 2, 'median_hours': 2.0}, day['stages']
|
||||
assert day['stages']['rec']['median_hours'] == 1.0, day['stages']
|
||||
assert day['stages']['tra'] == {'orders': 1, 'passages': 2, 'average_hours': 2.0}, day['stages']
|
||||
assert day['stages']['rec']['average_hours'] == 1.0, day['stages']
|
||||
# Half an hour of it waiting for the customer does not count (D-38).
|
||||
with db.connect() as c:
|
||||
c.execute('''INSERT INTO dtf_local.contact_waits(order_id, started_at, ended_at)
|
||||
VALUES(%s, %s::timestamptz, %s::timestamptz)''', (order_id, f'{alone} 09:15-03', f'{alone} 09:45-03'))
|
||||
day = client.call(f'/operator/stats?start={alone}&end={alone}', operator=True)
|
||||
assert day['stages']['tra']['median_hours'] == 1.5, day['stages']
|
||||
assert day['stages']['rec']['median_hours'] == 1.0, day['stages']
|
||||
assert day['stages']['tra']['average_hours'] == 1.5, day['stages']
|
||||
assert day['stages']['rec']['average_hours'] == 1.0, day['stages']
|
||||
|
||||
# The company's name from the registry: on the board, and found by the search.
|
||||
from app import cnpj as registry
|
||||
|
||||
Reference in New Issue
Block a user