@@ -13,58 +13,57 @@ def test_diff_for_humans():
13
13
14
14
def diff_for_humans ():
15
15
d = pendulum .now ().subtract (seconds = 1 )
16
- assert d .diff_for_humans (locale = locale ) == ' कुछ सेकंड पहले'
16
+ assert d .diff_for_humans (locale = locale ) == " कुछ सेकंड पहले"
17
17
18
18
d = pendulum .now ().subtract (seconds = 2 )
19
- assert d .diff_for_humans (locale = locale ) == ' कुछ सेकंड पहले'
19
+ assert d .diff_for_humans (locale = locale ) == " कुछ सेकंड पहले"
20
20
21
21
d = pendulum .now ().subtract (seconds = 21 )
22
- assert d .diff_for_humans (locale = locale ) == ' 21 सेकंड पहले'
22
+ assert d .diff_for_humans (locale = locale ) == " 21 सेकंड पहले"
23
23
24
24
d = pendulum .now ().subtract (minutes = 1 )
25
- assert d .diff_for_humans (locale = locale ) == ' 1 मिनट पहले'
25
+ assert d .diff_for_humans (locale = locale ) == " 1 मिनट पहले"
26
26
27
27
d = pendulum .now ().subtract (minutes = 2 )
28
- assert d .diff_for_humans (locale = locale ) == ' 2 मिनट पहले'
28
+ assert d .diff_for_humans (locale = locale ) == " 2 मिनट पहले"
29
29
30
30
d = pendulum .now ().subtract (hours = 1 )
31
- assert d .diff_for_humans (locale = locale ) == ' 1 घंटे पहले'
31
+ assert d .diff_for_humans (locale = locale ) == " 1 घंटे पहले"
32
32
33
33
d = pendulum .now ().subtract (hours = 2 )
34
- assert d .diff_for_humans (locale = locale ) == ' 2 घंटे पहले'
34
+ assert d .diff_for_humans (locale = locale ) == " 2 घंटे पहले"
35
35
36
36
d = pendulum .now ().subtract (days = 1 )
37
- assert d .diff_for_humans (locale = locale ) == ' 1 दिन पहले'
37
+ assert d .diff_for_humans (locale = locale ) == " 1 दिन पहले"
38
38
39
39
d = pendulum .now ().subtract (days = 2 )
40
- assert d .diff_for_humans (locale = locale ) == ' 2 दिन पहले'
40
+ assert d .diff_for_humans (locale = locale ) == " 2 दिन पहले"
41
41
42
42
d = pendulum .now ().subtract (weeks = 1 )
43
- assert d .diff_for_humans (locale = locale ) == ' 1 सप्ताह पहले'
43
+ assert d .diff_for_humans (locale = locale ) == " 1 सप्ताह पहले"
44
44
45
45
d = pendulum .now ().subtract (weeks = 2 )
46
- assert d .diff_for_humans (locale = locale ) == ' 2 सप्ताह पहले'
46
+ assert d .diff_for_humans (locale = locale ) == " 2 सप्ताह पहले"
47
47
48
48
d = pendulum .now ().subtract (months = 1 )
49
- assert d .diff_for_humans (locale = locale ) == ' 1 माह पहले'
49
+ assert d .diff_for_humans (locale = locale ) == " 1 माह पहले"
50
50
51
51
d = pendulum .now ().subtract (months = 2 )
52
- assert d .diff_for_humans (locale = locale ) == ' 2 माह पहले'
52
+ assert d .diff_for_humans (locale = locale ) == " 2 माह पहले"
53
53
54
54
d = pendulum .now ().subtract (years = 1 )
55
- assert d .diff_for_humans (locale = locale ) == ' 1 वर्ष पहले'
55
+ assert d .diff_for_humans (locale = locale ) == " 1 वर्ष पहले"
56
56
57
57
d = pendulum .now ().subtract (years = 2 )
58
- assert d .diff_for_humans (locale = locale ) == ' 2 वर्ष पहले'
58
+ assert d .diff_for_humans (locale = locale ) == " 2 वर्ष पहले"
59
59
60
60
d = pendulum .now ().add (seconds = 1 )
61
- assert d .diff_for_humans (locale = locale ) == ' कुछ सेकंड में'
61
+ assert d .diff_for_humans (locale = locale ) == " कुछ सेकंड में"
62
62
63
63
d = pendulum .now ().add (seconds = 1 )
64
64
d2 = pendulum .now ()
65
- assert d .diff_for_humans (d2 , locale = locale ) == ' कुछ सेकंड बाद'
66
- assert d2 .diff_for_humans (d , locale = locale ) == ' कुछ सेकंड पहले'
65
+ assert d .diff_for_humans (d2 , locale = locale ) == " कुछ सेकंड बाद"
66
+ assert d2 .diff_for_humans (d , locale = locale ) == " कुछ सेकंड पहले"
67
67
68
- assert d .diff_for_humans (d2 , True , locale = locale ) == 'कुछ सेकंड'
69
- assert d2 .diff_for_humans (d .add (seconds = 1 ), True ,
70
- locale = locale ) == 'कुछ सेकंड'
68
+ assert d .diff_for_humans (d2 , True , locale = locale ) == "कुछ सेकंड"
69
+ assert d2 .diff_for_humans (d .add (seconds = 1 ), True , locale = locale ) == "कुछ सेकंड"
0 commit comments