File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 12
12
13
13
def test_flush_delete ():
14
14
create_user (client , "testflushdelete" , "testflushdelete" )
15
- for i in range (1 , 11 ):
15
+ for i in range (1 , 9 ):
16
16
response = client .put (
17
17
"/flush" ,
18
18
json = {
19
- "time_start" : datetime .now ().isoformat (timespec = "minutes" ),
20
- "time_end" : (datetime .now () + timedelta (minutes = 1 * i )).isoformat (
21
- timespec = "minutes"
22
- ),
19
+ "time_start" : "2012-01-19 17:00:00" ,
20
+ "time_end" : f"2012-01-19 17:0{ i } :00" ,
23
21
"rating" : i ,
24
22
"note" : "w0w" ,
25
23
"phone_used" : True ,
@@ -30,15 +28,13 @@ def test_flush_delete():
30
28
),
31
29
)
32
30
assert response .status_code == status .HTTP_201_CREATED
33
- for i in range (1 , 11 ):
31
+ for i in range (1 , 9 ):
34
32
response = client .request (
35
33
"DELETE" ,
36
34
"/flush" ,
37
35
json = {
38
- "time_start" : datetime .now ().isoformat (timespec = "minutes" ),
39
- "time_end" : (datetime .now () + timedelta (minutes = 1 * i )).isoformat (
40
- timespec = "minutes"
41
- ),
36
+ "time_start" : "2012-01-19 17:00:00" ,
37
+ "time_end" : f"2012-01-19 17:0{ i } :00" ,
42
38
"rating" : i ,
43
39
"note" : "w0w" ,
44
40
"phone_used" : True ,
You can’t perform that action at this time.
0 commit comments