Skip to content

Commit

Permalink
🧪 Testing Cassettes
Browse files Browse the repository at this point in the history
  • Loading branch information
juftin committed Feb 12, 2023
1 parent f11a0d4 commit 66242bc
Show file tree
Hide file tree
Showing 38 changed files with 98,568 additions and 50,645 deletions.
19 changes: 10 additions & 9 deletions tests/cassettes/test_pushover_campsite.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
interactions:
- request:
body:
body: null
headers:
Accept:
- "*/*"
Expand All @@ -18,10 +18,11 @@ interactions:
uri: https://api.pushover.net/1/messages.json?html=1&message=%3Cb%3ECampsite+Id%3A%3C%2Fb%3E+100%0A%3Cb%3EBooking+Date%3A%3C%2Fb%3E+2023-09-01%0A%3Cb%3EBooking+End+Date%3A%3C%2Fb%3E+2023-09-02%0A%3Cb%3EBooking+Nights%3A%3C%2Fb%3E+1%0A%3Cb%3ECampsite+Site+Name%3A%3C%2Fb%3E+Test+Campsite+Name%0A%3Cb%3ECampsite+Loop+Name%3A%3C%2Fb%3E+A1%0A%3Cb%3ECampsite+Type%3A%3C%2Fb%3E+Test%0A%3Cb%3ECampsite+Occupancy%3A%3C%2Fb%3E+%281%2C+5%29%0A%3Cb%3ECampsite+Use+Type%3A%3C%2Fb%3E+Test%0A%3Cb%3EAvailability+Status%3A%3C%2Fb%3E+Available%0A%3Cb%3ERecreation+Area%3A%3C%2Fb%3E+Test+Recreation+Area%0A%3Cb%3ERecreation+Area+Id%3A%3C%2Fb%3E+20%0A%3Cb%3EFacility+Name%3A%3C%2Fb%3E+Test+Campground%0A%3Cb%3EFacility+Id%3A%3C%2Fb%3E+50%0A%3Cb%3EBooking+Link%3A%3C%2Fb%3E+%3Ca+href%3D%27https%3A%2F%2Fyoutu.be%2FeBGIQ7ZuuiU%27%3Ehttps%3A%2F%2Fyoutu.be%2FeBGIQ7ZuuiU%3C%2Fa%3E%0A%3Cb%3EPermitted+Equipment%3A%3C%2Fb%3E+%0A++-+&title=Test+Recreation+Area+%7C+Test+Campground+%7C+2023-09-01&token=REDACTED&user=REDACTED
response:
body:
string: '{"status":1,"request":"6b831a9d-1767-42b1-80f6-1f41e50dec46"}'
string: '{"status":1,"request":"2fc925c3-6665-45b7-ac5b-192df19113e3"}'
headers:
Access-Control-Allow-Headers:
- X-Requested-With, X-Prototype-Version, Origin, Accept, Content-Type, X-CSRF-Token, X-Pushover-App, Authorization
- X-Requested-With, X-Prototype-Version, Origin, Accept, Content-Type, X-CSRF-Token,
X-Pushover-App, Authorization
Access-Control-Allow-Methods:
- POST, OPTIONS
Access-Control-Allow-Origin:
Expand All @@ -35,9 +36,9 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- Tue, 29 Nov 2022 06:13:17 GMT
- Sun, 12 Feb 2023 07:21:03 GMT
ETag:
- W/"d590a41ac5c40b38f418c4758b1426bc"
- W/"dc782d238f0b93fbd3142918865d1e6e"
Referrer-Policy:
- strict-origin-when-cross-origin
Server:
Expand All @@ -56,17 +57,17 @@ interactions:
X-Limit-App-Limit:
- "10000"
X-Limit-App-Remaining:
- "9995"
- "9994"
X-Limit-App-Reset:
- "1669874400"
- "1677650400"
X-PO-H:
- a
X-Permitted-Cross-Domain-Policies:
- none
X-Request-Id:
- 6b831a9d-1767-42b1-80f6-1f41e50dec46
- 2fc925c3-6665-45b7-ac5b-192df19113e3
X-Runtime:
- "0.062476"
- "0.058270"
X-XSS-Protection:
- 1; mode=block
status:
Expand Down
21 changes: 11 additions & 10 deletions tests/cassettes/test_pushover_message.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
interactions:
- request:
body:
body: null
headers:
Accept:
- "*/*"
Expand All @@ -18,10 +18,11 @@ interactions:
uri: https://api.pushover.net/1/messages.json?message=This+is+a+test+message%21&token=REDACTED&user=REDACTED
response:
body:
string: '{"status":1,"request":"7c8af003-b8c8-4d74-af54-20368dae4c1e"}'
string: '{"status":1,"request":"ae424a27-1cd4-403a-86d8-23f0619e564a"}'
headers:
Access-Control-Allow-Headers:
- X-Requested-With, X-Prototype-Version, Origin, Accept, Content-Type, X-CSRF-Token, X-Pushover-App, Authorization
- X-Requested-With, X-Prototype-Version, Origin, Accept, Content-Type, X-CSRF-Token,
X-Pushover-App, Authorization
Access-Control-Allow-Methods:
- POST, OPTIONS
Access-Control-Allow-Origin:
Expand All @@ -35,9 +36,9 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- Tue, 29 Nov 2022 05:51:28 GMT
- Sun, 12 Feb 2023 07:21:03 GMT
ETag:
- W/"a0ad3e68f8bcb0a21a84773cecdaf7f3"
- W/"883ec6d8198decde0f457df01f6bff29"
Referrer-Policy:
- strict-origin-when-cross-origin
Server:
Expand All @@ -56,17 +57,17 @@ interactions:
X-Limit-App-Limit:
- "10000"
X-Limit-App-Remaining:
- "9996"
- "9995"
X-Limit-App-Reset:
- "1669874400"
- "1677650400"
X-PO-H:
- t
- a
X-Permitted-Cross-Domain-Policies:
- none
X-Request-Id:
- 7c8af003-b8c8-4d74-af54-20368dae4c1e
- ae424a27-1cd4-403a-86d8-23f0619e564a
X-Runtime:
- "0.054488"
- "0.055934"
X-XSS-Protection:
- 1; mode=block
status:
Expand Down
Loading

0 comments on commit 66242bc

Please # to comment.