@@ -21,12 +21,10 @@ class GmpGetReportsTestMixin:
21
21
def test_get_reports (self ):
22
22
self .gmp .get_reports ()
23
23
24
- self .connection .send .has_been_called_with (
25
- '<get_reports ignore_pagination="1"/>'
26
- )
24
+ self .connection .send .has_been_called_with ("<get_reports/>" )
27
25
28
26
def test_get_reports_with_filter_string (self ):
29
- self .gmp .get_reports (filter_string = "name=foo" )
27
+ self .gmp .get_reports (filter_string = "name=foo" , ignore_pagination = 1 )
30
28
31
29
self .connection .send .has_been_called_with (
32
30
'<get_reports report_filter="name=foo" ignore_pagination="1"/>'
@@ -36,47 +34,43 @@ def test_get_reports_with_filter_id(self):
36
34
self .gmp .get_reports (filter_id = "f1" )
37
35
38
36
self .connection .send .has_been_called_with (
39
- '<get_reports report_filt_id="f1" ignore_pagination="1" />'
37
+ '<get_reports report_filt_id="f1"/>'
40
38
)
41
39
42
40
def test_get_reports_without_note_details (self ):
43
41
self .gmp .get_reports (note_details = False )
44
42
45
43
self .connection .send .has_been_called_with (
46
- '<get_reports note_details="0" ignore_pagination="1" />'
44
+ '<get_reports note_details="0"/>'
47
45
)
48
46
49
47
def test_get_reports_with_note_details (self ):
50
- self .gmp .get_reports (note_details = True )
48
+ self .gmp .get_reports (note_details = True , ignore_pagination = False )
51
49
52
50
self .connection .send .has_been_called_with (
53
- '<get_reports note_details="1" ignore_pagination="1 "/>'
51
+ '<get_reports note_details="1" ignore_pagination="0 "/>'
54
52
)
55
53
56
54
def test_get_reports_without_override_details (self ):
57
55
self .gmp .get_reports (override_details = False )
58
56
59
57
self .connection .send .has_been_called_with (
60
- '<get_reports override_details="0" ignore_pagination="1" />'
58
+ '<get_reports override_details="0"/>'
61
59
)
62
60
63
61
def test_get_reports_with_override_details (self ):
64
62
self .gmp .get_reports (override_details = True )
65
63
66
64
self .connection .send .has_been_called_with (
67
- '<get_reports override_details="1" ignore_pagination="1" />'
65
+ '<get_reports override_details="1"/>'
68
66
)
69
67
70
68
def test_get_reports_with_details (self ):
71
69
self .gmp .get_reports (details = True )
72
70
73
- self .connection .send .has_been_called_with (
74
- '<get_reports details="1" ignore_pagination="1"/>'
75
- )
71
+ self .connection .send .has_been_called_with ('<get_reports details="1"/>' )
76
72
77
73
def test_get_reports_without_details (self ):
78
74
self .gmp .get_reports (details = False )
79
75
80
- self .connection .send .has_been_called_with (
81
- '<get_reports details="0" ignore_pagination="1"/>'
82
- )
76
+ self .connection .send .has_been_called_with ('<get_reports details="0"/>' )
0 commit comments