bots: Move mock http conversations to fixtures.
This commit is contained in:
		
							parent
							
								
									2d94fd16ba
								
							
						
					
					
						commit
						c193443541
					
				
					 4 changed files with 49 additions and 50 deletions
				
			
		
							
								
								
									
										7
									
								
								bots/giphy/fixtures/test_1_request.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								bots/giphy/fixtures/test_1_request.json
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,7 @@ | |||
| { | ||||
|     "api_url": "http://api.giphy.com/v1/gifs/translate", | ||||
|     "params": { | ||||
|         "s": "Hello", | ||||
|         "api_key": "12345678" | ||||
|     } | ||||
| } | ||||
							
								
								
									
										12
									
								
								bots/giphy/fixtures/test_1_response.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								bots/giphy/fixtures/test_1_response.json
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,12 @@ | |||
| { | ||||
|     "meta": { | ||||
|         "status": 200 | ||||
|     }, | ||||
|     "data": { | ||||
|         "images": { | ||||
|             "original": { | ||||
|                 "url": "https://media4.giphy.com/media/3o6ZtpxSZbQRRnwCKQ/giphy.gif" | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Robert Hönig
						Robert Hönig