-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from esev/vcr
Add integration test for RX-V577
- Loading branch information
Showing
10 changed files
with
2,165 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
include Makefile | ||
recursive-include tests *.py | ||
recursive-include tests *.xml | ||
recursive-include tests *.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
66 changes: 66 additions & 0 deletions
66
tests/integration/cassettes/test_RX_V577/test_basic_status.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
interactions: | ||
- request: | ||
body: <YAMAHA_AV cmd="GET"><Main_Zone><Basic_Status>GetParam</Basic_Status></Main_Zone></YAMAHA_AV> | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '93' | ||
Content-Type: | ||
- text/xml | ||
User-Agent: | ||
- python-requests/2.25.1 | ||
method: POST | ||
uri: http://192.168.1.100/YamahaRemoteControl/ctrl | ||
response: | ||
body: | ||
string: <YAMAHA_AV rsp="GET" RC="0"><Main_Zone><Basic_Status><Power_Control><Power>On</Power><Zone_B_Power_Info>Standby</Zone_B_Power_Info><Sleep>Off</Sleep></Power_Control><Volume><Lvl><Val>-510</Val><Exp>1</Exp><Unit>dB</Unit></Lvl><Mute>Off</Mute><Subwoofer_Trim><Val>0</Val><Exp>1</Exp><Unit>dB</Unit></Subwoofer_Trim><Scale>dB</Scale><Zone_B><Feature_Availability>Not | ||
Ready</Feature_Availability><Interlock>On</Interlock><Lvl><Val>-510</Val><Exp>1</Exp><Unit>dB</Unit></Lvl><Mute>Off</Mute></Zone_B></Volume><Input><Input_Sel>NET | ||
RADIO</Input_Sel><Input_Sel_Item_Info><Param>NET RADIO</Param><RW>RW</RW><Title>NET | ||
RADIO</Title><Icon><On>/YamahaRemoteControl/Icons/icon005.png</On><Off></Off></Icon><Src_Name>NET_RADIO</Src_Name><Src_Number>1</Src_Number></Input_Sel_Item_Info></Input><Surround><Program_Sel><Current><Straight>Off</Straight><Enhancer>On</Enhancer><Sound_Program>7ch | ||
Stereo</Sound_Program></Current></Program_Sel><_3D_Cinema_DSP>Auto</_3D_Cinema_DSP></Surround><Sound_Video><Tone><Bass><Val>0</Val><Exp>1</Exp><Unit>dB</Unit></Bass><Treble><Val>0</Val><Exp>1</Exp><Unit>dB</Unit></Treble></Tone><Direct><Mode>Off</Mode></Direct><HDMI><Standby_Through_Info>On</Standby_Through_Info><Output><OUT_1>On</OUT_1></Output></HDMI><Extra_Bass>Off</Extra_Bass><Adaptive_DRC>Off</Adaptive_DRC></Sound_Video><Speaker_Preout><Speaker_AB><Speaker_A>On</Speaker_A><Speaker_B>Off</Speaker_B></Speaker_AB></Speaker_Preout></Basic_Status></Main_Zone></YAMAHA_AV> | ||
headers: | ||
Content-Length: | ||
- '1456' | ||
Content-Type: | ||
- text/xml; charset="utf-8" | ||
Server: | ||
- AV_Receiver/3.1 (RX-V577) | ||
status: | ||
code: 200 | ||
message: OK | ||
- request: | ||
body: <YAMAHA_AV cmd="GET"><Main_Zone><Input><Input_Sel>GetParam</Input_Sel></Input></Main_Zone></YAMAHA_AV> | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '102' | ||
Content-Type: | ||
- text/xml | ||
User-Agent: | ||
- python-requests/2.25.1 | ||
method: POST | ||
uri: http://192.168.1.100/YamahaRemoteControl/ctrl | ||
response: | ||
body: | ||
string: <YAMAHA_AV rsp="GET" RC="0"><Main_Zone><Input><Input_Sel>NET RADIO</Input_Sel></Input></Main_Zone></YAMAHA_AV> | ||
headers: | ||
Content-Length: | ||
- '110' | ||
Content-Type: | ||
- text/xml; charset="utf-8" | ||
Server: | ||
- AV_Receiver/3.1 (RX-V577) | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
Oops, something went wrong.