File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -23,20 +23,22 @@ def test_committeehearings_search(self):
23
23
self .assertIn (self .query , i ['description' ])
24
24
25
25
def test_committeehearings_get (self ):
26
- #json path
27
- #
26
+ json_path = 'CommitteeHearings/get.json'
28
27
collection = RTC .CommitteeHearings
28
+ TestCommitteeHearings = alter_response (json_path , collection )
29
29
self .date = '2011-10-06'
30
30
self .chamber = 'senate'
31
31
self .committee_id = 'SSEV'
32
32
self .query = 'uranium'
33
-
34
- self .committeehearings = RTC . CommitteeHearings .get (date = self .date ,
33
+
34
+ self .committeehearings = TestCommitteeHearings .get (date = self .date ,
35
35
chamber = self .chamber , committee_id = self .committee_id ,
36
36
search = self .query )
37
37
38
38
self .assertNotEqual (len (self .committeehearings ), 0 , 'There should be at least 1 result' )
39
- self .assertNotEqual (len (self .committeehearings ), 0 , 'There should be at least 1 result' )
39
+ #self.committeehearings = RTC.CommitteeHearings.get(date=self.date,
40
+ #chamber=self.chamber, committee_id=self.committee_id,
41
+ #search=self.query)
40
42
#check that it contains the keyword arguments
41
43
for i in self .committeehearings :
42
44
self .assertIn (self .date , i ['legislative_day' ], 'Should have correct legi day' )
You can’t perform that action at this time.
0 commit comments